package com.aspose.cells;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Random;

class zcfe {
   int a = 1;
   private int[] f;
   private int[] g;
   Cell b;
   boolean c;
   boolean d;
   private boolean h;
   private Random i;
   private boolean j;
   private ArrayList k;
   private HashMap l;
   private HashMap m = new HashMap();
   private ICustomFunction n;
   private int o = 0;
   Workbook e;
   private boolean p = false;
   private HashMap q;
   private ArrayList r;
   private ArrayList s = new ArrayList();
   private int t = 0;
   private static final com.aspose.cells.b.c.a.za u = new com.aspose.cells.b.c.a.za(new String[]{"DCOUNT", "DCOUNTA", "DGET", "DAVERAGE", "DSTDEV", "DSTDEVP", "DVAR", "DVARP", "DMAX", "DMIN", "DPRODUCT", "DSUM", "INTERCEPT", "SLOPE", "COVAR", "MIRR", "STEYX", "SUMX2MY2", "SUMX2PY2", "SUMXMY2", "TRIMMEAN", "ZTEST", "CELL", "COLUMN", "COLUMNS", "ROWS", "CONCATENATE", "COUNT", "COUNTA", "IF", "ROW", "ISBLANK", "OFFSET", ":", "LOOKUP", "GETPIVOTDATA", "TYPE", "DATE", "AND", "OR", "INDEX", "VLOOKUP", "HLOOKUP", "MATCH", "SUMIF", "COUNTIF", "AVERAGEIF", "SUMIFS", "_xlfn.SUMIFS", "COUNTIFS", "_xlfn.COUNTIFS", "AVERAGEIFS", "_xlfn.AVERAGEIFS", "SUBTOTAL", "SUMPRODUCT", "LOGEST", "MCORRELS", "REGRESSN", "PEARSON", "RSQ", "FREQUENCY", "LINEST", "SMALL", "AVERAGE", "AVERAGEA", "MIN", "MINA", "MAX", "MAXA", "RANK", "SUM", " ", ",", "ABS", "ACCRINT", "ACCRINTM", "ADDRESS", "ACOS", "ACOSH", "AMORDEGRC", "AMORLINC", "AREAS", "ASIN", "ASINH", "ATAN", "ATAN2", "ATANH", "AVEDEV", "_xlfn.AVERAGEIF", "BESSELI", "BESSELJ", "BESSELK", "BESSELY", "BIN2DEC", "BIN2HEX", "BIN2OCT", "DEC2BIN", "DEC2HEX", "DEC2OCT", "BITAND", "_xlfn.BITAND", "BITOR", "_xlfn.BITOR", "BITXOR", "_xlfn.BITXOR", "BITLSHIFT", "_xlfn.BITLSHIFT", "BITRSHIFT", "_xlfn.BITRSHIFT", "BETADIST", "BETAINV", "BINOMDIST", "CEILING", "CHAR", "CHIDIST", "CHIINV", "CHITEST", "CHOOSE", "CLEAN", "CODE", "COMBIN", "COMPLEX", "CONFIDENCE", "CONVERT", "CORREL", "COS", "COSH", "COUNTBLANK", "COUPDAYBS", "COUPDAYS", "COUPDAYSNC", "COUPNCD", "COUPNUM", "COUPPCD", "CUMIPMT", "CUMPRINC", "CRITBINOM", "DATEVALUE", "DATEDIF", "DAY", "_xlfn.DAYS", "DAYS", "DAYS360", "DB", "DEGREES", "DELTA", "DEVSQ", "DDB", "DISC", "DOLLAR", "USDOLLAR", "DOLLARFR", "DOLLARDE", "DURATION", "EDATE", "EFFECT", "EOMONTH", "ERF", "ERFC", "ERROR.TYPE", "EXACT", "EXP", "EXPONDIST", "EVEN", "FACT", "FACTDOUBLE", "FALSE", "FDIST", "FIND", "FINDB", "FINV", "FISHER", "FISHERINV", "FIXED", "FLOOR", "FORECAST", "FV", "FVSCHEDULE", "GAMMADIST", "GAMMAINV", "GAMMALN", "GCD", "GEOMEAN", "GESTEP", "GROWTH", "HARMEAN", "HEX2BIN", "HEX2DEC", "HEX2OCT", "HYPERLINK", "HYPGEOMDIST", "IMABS", "IMAGINARY", "IMARGUMENT", "IMCONJUGATE", "IMCOS", "IMDIV", "IMEXP", "IMLN", "IMLOG10", "IMLOG2", "IMPOWER", "IMREAL", "IMSIN", "IMSQRT", "IMSUB", "IMPRODUCT", "IMSUM", "INDIRECT", "INT", "INTRATE", "IPMT", "IRR", "ISERR", "ISEVEN", "ISERROR", "IFERROR", "_xlfn.IFERROR", "iferror", "IFNA", "_xlfn.IFNA", "ISNA", "ISNONTEXT", "ISLOGICAL", "ISNUMBER", "ISODD", "ISPMT", "ISREF", "ISTEXT", "KURT", "LARGE", "LCM", "LEFT", "LEFTB", "LEN", "LENB", "LN", "LOG", "LOG10", "LOGINV", "LOGNORMDIST", "LOWER", "MDETERM", "MDURATION", "MID", "MIDB", "MINVERSE", "MMULT", "MOD", "MODE", "MONTH", "MEDIAN", "MROUND", "MULTINOMIAL", "N", "NA", "NEGBINOMDIST", "NETWORKDAYS", "NETWORKDAYS.INTL", "NOT", "NOW", "NOMINAL", "NORMINV", "NORMSINV", "NORMDIST", "NORMSDIST", "NPER", "NPV", "OCT2BIN", "OCT2DEC", "OCT2HEX", "ODD", "ODDFPRICE", "ODDFYIELD", "ODDLPRICE", "ODDLYIELD", "PERCENTRANK", "PERCENTILE", "PERMUT", "PI", "POISSON", "POWER", "PRICE", "PRICEDISC", "PRICEMAT", "PROB", "PRODUCT", "PROPER", "PMT", "PPMT", "PV", "QUOTIENT", "QUARTILE", "RADIANS", "RAND", "RANDBETWEEN", "RATE", "RECEIVED", "REPLACE", "REPLACEB", "REPT", "RIGHT", "RIGHTB", "ROMAN", "ROUND", "ROUNDDOWN", "ROUNDUP", "SEARCH", "SEARCHB", "SERIESSUM", "SIGN", "SIN", "SINH", "SKEW", "SLN", "SQRT", "SQRTPI", "STANDARDIZE", "STDEV", "STDEV.S", "_xlfn.STDEV.S", "STDEVA", "STDEVP", "STDEV.P", "_xlfn.STDEV.P", "STDEVPA", "SUBSTITUTE", "SUMSQ", "SYD", "T", "TBILLEQ", "TBILLPRICE", "TBILLYIELD", "TAN", "TANH", "TDIST", "TEXT", "TIME", "TIMEVALUE", "TINV", "TRANSPOSE", "TRIM", "TREND", "TRUE", "TRUNC", "TTEST", "TODAY", "SECOND", "MINUTE", "HOUR", "UPPER", "VALUE", "VAR", "VARA", "VARP", "VARPA", "VDB", "WEEKDAY", "WEEKNUM", "WORKDAY", "WORKDAY.INTL", "XIRR", "XINTZINSFUSS", "XNPV", "XKAPITALWERT", "YEAR", "YIELD", "YIELDDISC", "YIELDMAT", "BRTEILJAHRE", "YEARFRAC", "WEIBULL", "[h]", "[H]", "COL", "FILENAME", "FORMAT", "PREFIX", "PROTECT", "CONTENTS", "WIDTH", "COLOR", "PARENTHESES"});

   zcfe(Workbook var1) {
      this.e = var1;
      this.k = new ArrayList();
      this.l = new HashMap();
      this.t = var1.getSettings().getCalcStackSize();
      this.j = var1.getSettings().getCreateCalcChain();
      this.f = new int[var1.getWorksheets().getCount()];
      this.g = new int[this.f.length];

      for(int var2 = 0; var2 < this.f.length; ++var2) {
         this.f[var2] = -1;
         this.g[var2] = -1;
      }

   }

   void a(boolean var1, ICustomFunction var2) {
      this.h = var1;
      this.n = var2;
   }

   int a(int var1) {
      if (this.g[var1] < 0) {
         this.g[var1] = Math.max(this.e.getWorksheets().get(var1).getCells().getRows().a.a_(), 0);
      }

      return this.g[var1];
   }

   int b(int var1) {
      if (this.f[var1] < 0) {
         this.f[var1] = Math.max(this.e.getWorksheets().get(var1).getCells().getRows().a.a(), 0);
      }

      return this.f[var1];
   }

   int a(int var1, int var2) {
      int var3 = this.a(var1);
      if (var3 == 0) {
         return 0;
      } else {
         String var4 = var1 + "-" + var2;
         if (this.m.get(var4) != null) {
            return (Integer)this.m.get(var4);
         } else {
            zahr var5 = this.e.getWorksheets().get(var1).getCells().getRows().a.a(-1, -1, true);

            Row var6;
            Cell var7;
            do {
               if (!var5.hasNext()) {
                  this.m.put(var4, -1);
                  return -1;
               }

               var6 = var5.f();
               var7 = var6.getCellOrNull(var2);
            } while(var7 == null || var7.d());

            this.m.put(var4, var6.getIndex());
            return var6.getIndex();
         }
      }
   }

   zem a(zft var1, boolean var2, boolean var3, boolean var4, boolean var5) {
      int var6 = var1.b;
      Cells var7 = this.e.getWorksheets().get(var6).getCells();
      int var8 = var1.d.StartRow;
      int var9 = var1.d.StartColumn;
      int var10 = var1.d.EndRow;
      int var11 = var1.d.EndColumn;
      int var12;
      if (var8 > var10) {
         var12 = var8;
         var8 = var10;
         var10 = var12;
      }

      if (var4) {
         var12 = this.a(var6);
      } else {
         var12 = this.b(var6);
      }

      if (var10 > var12) {
         var10 = var12;
      }

      if (var10 < var8) {
         var10 = var8;
      }

      if (var11 > var7.getMaxColumn()) {
         var11 = var7.getMaxColumn();
      }

      if (var11 < var9) {
         var11 = var9;
      }

      return this.a(var6, var8, var9, var10, var11, var2, var3, var5);
   }

   zem a(int var1, int var2, int var3, int var4, int var5, boolean var6, boolean var7, boolean var8) {
      zem var9 = null;
      boolean var10 = false;

      int var11;
      for(var11 = 0; var11 < this.k.size(); ++var11) {
         var9 = (zem)this.k.get(var11);
         if (var9.a == var1 && var9.c == var3 && var9.b == var2 && var9.d == var4 && var9.e == var5) {
            var10 = true;
            var7 = true;
            break;
         }
      }

      if (!var10) {
         var9 = null;
         if (var6) {
            var9 = new zem();
            var9.a = var1;
            var9.b = var2;
            var9.c = var3;
            var9.d = var4;
            var9.e = var5;
            if (this.k.size() >= 40) {
               this.k.remove(0);
            }

            com.aspose.cells.b.a.a.ze.a(this.k, (Object)var9);
         }
      } else if (var9.h) {
         var9.f = null;
      }

      if (!var7) {
         return var9;
      } else {
         int var12;
         if (var9.f != null && var8 && !var9.g) {
            var9.g = true;
            Object[][] var23 = (Object[][])((Object[][])var9.f);
            var12 = var23.length;
            int var24 = var23[0].length;

            for(int var25 = 0; var25 < var12; ++var25) {
               Object[] var26 = var23[var25];
               if (var26 != null) {
                  for(int var27 = 0; var27 < var26.length; ++var27) {
                     if (var26[var27] != null && var26[var27] instanceof Cell) {
                        var26[var27] = this.a((Cell)var26[var27]);
                     }
                  }
               }
            }

            return var9;
         } else {
            if (var7 && var9.f == null) {
               var9.g = var8;
               var11 = var4 - var2 + 1;
               var12 = var5 - var3 + 1;
               Object[][] var13 = new Object[var11][];
               var13[0] = new Object[var12];
               Worksheet var14 = this.e.getWorksheets().get(var1);
               RowCollection var15 = var14.getCells().getRows();
               if (var4 > this.a(var1)) {
                  var4 = this.a(var1);
               }

               if (var5 > var14.getCells().b((short)0)) {
                  var5 = var14.getCells().b((short)0);
               }

               if (var2 <= var4 && var3 <= var5) {
                  zahr var16 = this.e.getWorksheets().get(var1).getCells().getRows().a.a(var2, var4, false);
                  Cell var22 = null;

                  label112:
                  while(true) {
                     zahl var17;
                     Object[] var18;
                     Row var20;
                     do {
                        if (!var16.hasNext()) {
                           break label112;
                        }

                        var20 = var16.f();
                        int var21 = var20.getIndex();
                        var18 = new Object[var12];
                        var13[var21 - var2] = var18;
                        var17 = var20.a.b(var3, var5, false);
                     } while(var17 == null);

                     while(true) {
                        while(true) {
                           int var19 = var17.a();
                           if (var19 < 0) {
                              continue label112;
                           }

                           var22 = new Cell(var20, var19);
                           if (var8) {
                              var18[var22.getColumn() - var3] = this.a(var22);
                              if (var22.f()) {
                                 var16.g();
                                 if (var22.H()) {
                                    var9.h = true;
                                 }
                              }
                           } else if (var22.f() && var22.G() != 2) {
                              var18[var22.getColumn() - var3] = var22;
                           } else {
                              var18[var22.getColumn() - var3] = var22.F();
                           }
                        }
                     }
                  }
               }

               var9.f = var13;
            }

            return var9;
         }
      }
   }

   Object a(zft var1) {
      double var2 = 0.0D;
      Object var4 = null;
      int var5 = var1.b;
      int var6 = var1.d.StartRow;
      int var7 = var1.d.StartColumn;
      int var8 = var1.d.EndRow;
      int var9 = var1.d.EndColumn;
      zem var10 = null;
      zem var11 = null;
      int var12 = -1;
      boolean var13 = false;

      int var14;
      for(var14 = 0; var14 < this.k.size(); ++var14) {
         var10 = (zem)this.k.get(var14);
         if (var10.a == var5 && var10.c == var7 && var10.b == var6 && var10.e == var9) {
            if (var10.d == var8) {
               var13 = true;
               break;
            }

            if (var10.d < var8 && (var11 == null || var11.d < var10.d)) {
               var11 = var10;
               var12 = var14;
            }
         }
      }

      var14 = var8 - var6 + 1;
      int var15 = var9 - var7 + 1;
      Object[][] var16 = (Object[][])null;
      if (var13) {
         if (var10.h) {
            var16 = new Object[var14][];
            var16[0] = new Object[var15];
         } else {
            if (var10.f != null) {
               this.a(var10);
               var16 = (Object[][])((Object[][])var10.f);
               return var16;
            }

            var16 = new Object[var14][];
            var16[0] = new Object[var15];
         }
      } else {
         var16 = new Object[var14][];
         var16[0] = new Object[var15];
         var10 = new zem();
         var10.g = true;
         var10.a = var5;
         var10.b = var6;
         var10.c = var7;
         var10.d = var8;
         var10.e = var9;
         if (var11 == null) {
            if (this.k.size() >= 40) {
               this.k.remove(0);
            }

            com.aspose.cells.b.a.a.ze.a(this.k, (Object)var10);
         } else {
            this.k.set(var12, var10);
            if (var11.f != null && var11.f instanceof Object[][]) {
               Object[][] var17 = (Object[][])((Object[][])var11.f);

               for(int var18 = 0; var18 < var17.length; ++var18) {
                  Object[] var19 = var17[var18];
                  var16[var18] = var19;
                  if (var19 != null) {
                     for(int var20 = 0; var20 < var19.length; ++var20) {
                        if (var19[var20] != null && var19[var20] instanceof Cell) {
                           Cell var21 = (Cell)var19[var20];
                           var19[var20] = this.a(var21);
                           if (var21.f() && var21.H()) {
                              var10.h = true;
                           }
                        }

                        if (var19[var20] != null && var4 == null) {
                           Object var32 = zyn.a(this.e, var19[var20], true, this.e.getSettings());
                           if (var32 instanceof zst) {
                              var4 = var32;
                           } else {
                              var2 += (Double)var32;
                           }
                        }
                     }
                  }
               }
            }
         }
      }

      Worksheet var28 = this.e.getWorksheets().get(var5);
      RowCollection var29 = var28.getCells().getRows();
      if (var8 > this.a(var5)) {
         var8 = this.a(var5);
      }

      if (var9 > var28.getCells().b((short)0)) {
         var9 = var28.getCells().b((short)0);
      }

      int var30 = var6;
      if (var11 != null) {
         var30 = var11.d + 1;
      }

      if (var30 <= var8 && var7 <= var9) {
         zahr var31 = this.e.getWorksheets().get(var5).getCells().getRows().a.a(var30, var8, false);
         Cell var26 = null;

         label107:
         while(true) {
            Object[] var22;
            Row var24;
            zahl var33;
            do {
               if (!var31.hasNext()) {
                  break label107;
               }

               var24 = var31.f();
               int var25 = var24.getIndex();
               var22 = new Object[var15];
               var16[var25 - var6] = var22;
               var33 = var24.a.b(var7, var9, false);
            } while(var33 == null);

            while(true) {
               int var23 = var33.a();
               if (var23 < 0) {
                  break;
               }

               var26 = new Cell(var24, var23);
               Object var27 = this.a(var26);
               var22[var26.getColumn() - var7] = var27;
               if (var27 != null && var4 == null) {
                  var27 = zyn.a(this.e, var27, true, this.e.getSettings());
                  if (var27 instanceof zst) {
                     var4 = var27;
                  } else {
                     var2 += (Double)var27;
                  }
               }

               if (var26.f()) {
                  var31.g();
                  if (var26.H()) {
                     var10.h = true;
                  }
               }
            }
         }
      }

      var10.f = var16;
      return var4 != null ? var4 : var2;
   }

   private void a(zem var1) {
      if (!var1.g && var1.f != null) {
         var1.g = true;
         Object[][] var2 = (Object[][])((Object[][])var1.f);
         int var3 = var2.length;
         int var4 = var2[0].length;

         for(int var5 = 0; var5 < var3; ++var5) {
            Object[] var6 = var2[var5];
            if (var6 != null) {
               for(int var7 = 0; var7 < var6.length; ++var7) {
                  if (var6[var7] != null && var6[var7] instanceof Cell) {
                     Cell var8 = (Cell)var6[var7];
                     var6[var7] = this.a(var8);
                     if (var8.f() && var8.H()) {
                        var1.h = true;
                     }
                  }
               }
            }
         }

      }
   }

   Object a(zabd var1, Cell var2) {
      Object var3 = null;
      boolean var4 = var2 != null && var2.y();
      if (var4 && !this.c) {
         byte[] var5 = var2.v();
         int var6 = com.aspose.cells.b.a.zc.a(var5, 5);
         int var7 = zcew.a(var5, 9);
         if (var6 != var2.getRow() || var7 != var2.getColumn()) {
            Cell var8 = var2.b.c.a.a(var6, var7);
            if (var8 == null) {
               return zst.g;
            }

            switch(var8.G()) {
            case 0:
               zabd var9 = this.e.getWorksheets().x().a(var8);
               if (var9 != null) {
                  var3 = this.b(var9, var8);
                  zyd.a(var3, var8);
                  return var2.F();
               }
               break;
            case 1:
               return zml.g;
            case 2:
               return var2.F();
            }
         }
      }

      switch(var1.i()) {
      case 1:
         var3 = this.u(var1, var2);
         break;
      case 2:
         var3 = this.c(var1, var2);
         break;
      case 3:
      case 5:
         var3 = this.z(var1, var2);
      case 4:
      }

      return var3;
   }

   Object b(zabd var1, Cell var2) {
      Object var3 = null;
      switch(var1.i()) {
      case 1:
         var3 = this.u(var1, var2);
         break;
      case 2:
         var3 = this.c(var1, var2);
         break;
      case 3:
      case 5:
         var3 = this.z(var1, var2);
      case 4:
      }

      return var3;
   }

   private Object c(zabd var1, Cell var2) {
      Object var3 = null;
      switch(var1.f()[0]) {
      case 3:
         var3 = new zae(var2, this.e.getSettings());
         break;
      case 4:
         var3 = new zbqd(var2, this.e.getSettings());
         break;
      case 5:
         var3 = new zaoa(var2, this.e.getSettings());
         break;
      case 6:
         var3 = new zro(var2, this.e.getSettings());
         break;
      case 7:
         return this.k(var1, var2);
      case 8:
         return this.j(var1, var2);
      case 9:
      case 10:
      case 11:
      case 12:
      case 13:
      case 14:
         var3 = new zlz(var2, var1.f()[0], this.e.getSettings());
         break;
      case 15:
         return this.f(var1, var2);
      case 16:
         return this.e(var1, var2);
      case 17:
         return this.g(var1, var2);
      case 18:
         var3 = new zavd(var2, this.e.getSettings());
         break;
      case 19:
         var3 = new zann(var2, this.e.getSettings());
         break;
      case 20:
         var3 = new zatp(var2, this.e.getSettings());
         break;
      case 21:
         return this.d(var1, var2);
      case 22:
      case 23:
      case 24:
      case 25:
      case 26:
      case 27:
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 33:
      case 34:
      case 35:
      case 37:
      case 38:
      case 39:
      case 40:
      case 41:
      case 42:
      case 43:
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
      case 58:
      case 59:
      case 60:
      case 61:
      case 62:
      case 63:
      case 64:
      case 65:
      case 66:
      case 67:
      case 69:
      case 70:
      case 71:
      case 72:
      case 73:
      case 74:
      case 75:
      case 76:
      case 77:
      case 78:
      case 79:
      case 80:
      case 81:
      case 82:
      case 83:
      case 84:
      case 85:
      case 86:
      case 87:
      case 88:
      case 89:
      case 90:
      case 91:
      case 92:
      case 93:
      case 94:
      case 95:
      case 96:
      case 97:
      case 98:
      case 99:
      default:
         return null;
      case 36:
      case 68:
      case 100:
         return this.u(var1, var2);
      }

      zabd var4 = (zabd)var1.d().get(0);
      zabd var5 = null;
      if (((zasf)var3).a()) {
         var5 = (zabd)var1.d().get(1);
      }

      Object var6 = null;
      Object var7 = null;
      switch(var4.i()) {
      case 1:
         var6 = this.u(var4, var2);
         break;
      case 2:
         var6 = this.c(var4, var2);
         break;
      case 3:
         var6 = this.z(var4, var2);
         break;
      default:
         var6 = null;
      }

      if (var5 != null) {
         switch(var5.i()) {
         case 1:
            var7 = this.u(var5, var2);
            break;
         case 2:
            var7 = this.c(var5, var2);
            break;
         case 3:
            var7 = this.z(var5, var2);
            break;
         default:
            var7 = null;
         }
      }

      return ((zasf)var3).c(var6, var7);
   }

   private Object d(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      return this.b(var3, var2);
   }

   private Object e(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      Object var5 = this.b(var3, var2);
      if (var5 instanceof zst) {
         return var5;
      } else {
         Object var6 = this.b(var4, var2);
         if (var6 instanceof zst) {
            return var6;
         } else {
            ArrayList var7 = new ArrayList();
            zyn.b(var7, var5);
            zyn.b(var7, var6);
            Object[][] var8 = new Object[][]{new Object[var7.size()]};

            for(int var9 = 0; var9 < var7.size(); ++var9) {
               var8[0][var9] = var7.get(var9);
            }

            return var8;
         }
      }
   }

   private Object f(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      Object var5 = this.b(var3, var2);
      if (var5 instanceof zst) {
         return var5;
      } else {
         Object var6 = this.b(var4, var2);
         if (var6 instanceof zst) {
            return var6;
         } else if (var5 instanceof zft && var6 instanceof zft) {
            zft var7 = (zft)var5;
            zft var8 = (zft)var6;
            if (var7.b != var8.b) {
               return zst.i;
            } else {
               Object var9 = zayd.e(var7.d, var8.d);
               if (var9 == null) {
                  return zst.e;
               } else if (var1.c() != null && "AREAS".equals(var1.b())) {
                  return 1.0D;
               } else {
                  CellArea var10 = (CellArea)var9;
                  return this.b(var1, this.e.getWorksheets().get(var7.b), var2, var10.StartRow, var10.EndRow, var10.StartColumn, var10.EndColumn, false);
               }
            }
         } else {
            return null;
         }
      }
   }

   private Object g(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      Object var5 = this.b(var3, var2);
      if (var5 instanceof zst) {
         return var5;
      } else {
         Object var6 = this.b(var4, var2);
         if (var6 instanceof zst) {
            return var6;
         } else {
            boolean var7 = var2 == null || var2.y();
            int var21;
            int var22;
            if (var5 instanceof String) {
               if (var6 instanceof String && zcev.a((String)var5) && zcev.a((String)var6)) {
                  byte var8 = 0;
                  byte var9 = 0;
                  byte var10 = 0;
                  byte var11 = 0;
                  int[] var12 = new int[]{var8};
                  int[] var13 = new int[]{var10};
                  CellsHelper.a((String)var5, var12, var13);
                  int var17 = var12[0];
                  var21 = var13[0];
                  int[] var14 = new int[]{var9};
                  int[] var15 = new int[]{var11};
                  CellsHelper.a((String)var6, var14, var15);
                  int var19 = var14[0];
                  var22 = var15[0];
                  int var16;
                  if (var17 > var19) {
                     var16 = var19;
                     var19 = var17;
                     var17 = var16;
                  }

                  if (var21 > var22) {
                     var16 = var22;
                     var22 = var21;
                     var21 = var16;
                  }

                  return this.b(var1, var2.d.h(), var2, var17, var19, var21, var22, var7);
               }
            } else if (var5 instanceof zft && var6 instanceof zft) {
               zft var18 = (zft)var5;
               zft var20 = (zft)var6;
               if (var18.a == var20.a && var18.b == var20.b) {
                  if (var18.d.StartRow < var20.d.StartRow) {
                     var21 = var18.d.StartRow;
                  } else {
                     var21 = var20.d.StartRow;
                  }

                  int var23;
                  if (var18.d.StartColumn < var20.d.StartColumn) {
                     var23 = var18.d.StartColumn;
                  } else {
                     var23 = var20.d.StartColumn;
                  }

                  if (var18.d.EndRow < var20.d.EndRow) {
                     var22 = var20.d.EndRow;
                  } else {
                     var22 = var18.d.EndRow;
                  }

                  int var24;
                  if (var18.d.EndColumn < var20.d.EndColumn) {
                     var24 = var20.d.EndColumn;
                  } else {
                     var24 = var18.d.EndColumn;
                  }

                  if (var1.c() != null && "AREAS".equals(var1.b())) {
                     if (var24 >= var23 && var22 >= var21) {
                        return 1.0D;
                     }

                     return zst.e;
                  }

                  if (var2 == null) {
                     zft var25 = new zft();
                     var25.a = var18.a;
                     var25.b = var18.b;
                     var25.d.StartRow = var21;
                     var25.d.StartColumn = var23;
                     var25.d.EndRow = var22;
                     var25.d.EndColumn = var24;
                     return var25;
                  }

                  if (var18.a != this.e.getWorksheets().u()) {
                     return zup.a(var1, var18.a, this.e.getWorksheets(), var18.b, var21, var23, var22, var24, this.l, (String)null);
                  }

                  return this.b(var1, this.e.getWorksheets().get(var18.b), var2, var21, var22, var23, var24, var7);
               }

               return zst.i;
            }

            return null;
         }
      }
   }

   private Object h(zabd var1, Cell var2) {
      new DateTime(1900, 1, 1);
      Object var4 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var4 instanceof Double) {
         DateTime var3 = CellsHelper.getDateTimeFromDouble((Double)var4, this.e.getSettings().getDate1904());
         Object var6 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            int var5 = (int)com.aspose.cells.a.c.zi.b(var6);
            return zbtm.a(var3, var5);
         } else {
            return var6;
         }
      } else {
         return var4;
      }
   }

   private Object i(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      Object var5;
      switch(var3.i()) {
      case 1:
         var5 = this.u(var3, var2);
         break;
      case 2:
         var5 = this.c(var3, var2);
         break;
      case 3:
         var5 = this.z(var3, var2);
         break;
      default:
         var5 = null;
      }

      Object var6;
      switch(var4.i()) {
      case 1:
         var6 = this.u(var4, var2);
         break;
      case 2:
         var6 = this.c(var4, var2);
         break;
      case 3:
         var6 = this.z(var4, var2);
         break;
      default:
         var6 = null;
      }

      if (var5 == null) {
         if (var6 == null) {
            return true;
         } else if (var6 instanceof zst) {
            return var6;
         } else {
            return var6 instanceof String && "".equals((String)var6) ? true : false;
         }
      } else if (var6 == null) {
         if (var5 instanceof zst) {
            return var5;
         } else {
            return var5 instanceof String && "".equals((String)var5) ? true : false;
         }
      } else {
         return !var2.y() && var1.f()[0] != 97 ? zbc.c(this.e, var5, var6) : zba.d(this.e, var5, var6);
      }
   }

   private Object j(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      Object var5;
      switch(var3.i()) {
      case 1:
         var5 = this.u(var3, var2);
         break;
      case 2:
         var5 = this.c(var3, var2);
         break;
      case 3:
         var5 = this.z(var3, var2);
         break;
      default:
         var5 = null;
      }

      Object var6;
      switch(var4.i()) {
      case 1:
         var6 = this.u(var4, var2);
         break;
      case 2:
         var6 = this.c(var4, var2);
         break;
      case 3:
         var6 = this.z(var4, var2);
         break;
      default:
         var6 = null;
      }

      if (var5 instanceof Object[]) {
         Object[] var7 = (Object[])((Object[])var5);
         if (var6 instanceof Object[]) {
            Object[] var8 = (Object[])((Object[])var6);
            return zba.a(var7, var8);
         }

         switch(var3.f()[0]) {
         case 101:
         case 123:
            return zba.a(var7, var6);
         }
      }

      if (var5 == null) {
         var5 = "";
      } else if (var5 instanceof DateTime) {
         var5 = com.aspose.cells.b.a.zn.b(CellsHelper.getDoubleFromDateTime((DateTime)var5, this.e.getSettings().getDate1904()));
      } else {
         var5 = zyn.a(var5);
         if (var5 instanceof zst) {
            return var5;
         }
      }

      if (var6 == null) {
         var6 = "";
      } else if (var6 instanceof DateTime) {
         var6 = com.aspose.cells.b.a.zn.b(CellsHelper.getDoubleFromDateTime((DateTime)var6, this.e.getSettings().getDate1904()));
      } else {
         var6 = zyn.a(var6);
         if (var6 instanceof zst) {
            return var6;
         }
      }

      return com.aspose.cells.b.a.zr.a(var5) + com.aspose.cells.b.a.zr.a(var6);
   }

   private Object k(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      Object var5 = this.b(var3, var2);
      Object var6 = this.b(var4, var2);
      if (var5 == null) {
         var5 = 0.0D;
      }

      if (var6 == null) {
         var6 = 0.0D;
      }

      if (var5 instanceof zst) {
         return var5;
      } else if (var6 instanceof zst) {
         return var6;
      } else {
         return !(var5 instanceof Object[]) && !(var6 instanceof Object[]) ? zbc.d(this.e, var5, var6) : zba.c(this.e, var5, var6);
      }
   }

   private Object l(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      zabd var5 = (zabd)var1.d().get(2);
      Object var6 = this.b(var3, var2);
      Object var7 = this.b(var4, var2);
      Object var8 = this.b(var5, var2);
      if (var6 == null) {
         var6 = 0.0D;
      }

      if (var7 == null) {
         var7 = 0.0D;
      }

      if (var8 == null) {
         return zst.a;
      } else {
         var6 = zyn.e(var6, this.e.getSettings().getDate1904());
         if (var6 instanceof zst) {
            return var6;
         } else {
            var7 = zyn.e(var7, this.e.getSettings().getDate1904());
            if (var7 instanceof zst) {
               return var7;
            } else {
               var8 = zyn.e(var8, this.e.getSettings().getDate1904());
               if (var8 instanceof zst) {
                  return var8;
               } else {
                  double var9 = (Double)var6;
                  double var11 = (Double)var7;
                  double var13 = (Double)var8;
                  return var13 == 0.0D ? zst.a : (var9 - var11) / var13;
               }
            }
         }
      }
   }

   private Object m(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      zabd var5 = (zabd)var1.d().get(2);
      zabd var6 = (zabd)var1.d().get(3);
      Object var7 = this.b(var3, var2);
      Object var8 = this.b(var4, var2);
      Object var9 = this.b(var5, var2);
      Object var10 = this.b(var6, var2);
      if (var7 == null) {
         var7 = 0.0D;
      }

      if (var8 == null) {
         var8 = 0.0D;
      }

      if (var9 == null) {
         return zst.a;
      } else {
         var7 = zyn.e(var7, this.e.getSettings().getDate1904());
         if (var7 instanceof zst) {
            return var7;
         } else {
            var8 = zyn.e(var8, this.e.getSettings().getDate1904());
            if (var8 instanceof zst) {
               return var8;
            } else {
               var9 = zyn.e(var9, this.e.getSettings().getDate1904());
               if (var9 instanceof zst) {
                  return var9;
               } else {
                  var10 = zyn.e(var10, this.e.getSettings().getDate1904());
                  if (var10 instanceof zst) {
                     return var10;
                  } else {
                     double var11 = (Double)var7;
                     double var13 = (Double)var8;
                     double var15 = (Double)var9;
                     double var17 = (Double)var10;
                     if (var15 == 0.0D) {
                        return zst.a;
                     } else {
                        return var17 >= var15 + 1.0D ? zst.f : (var11 - var13) * (var15 - var17 + 1.0D) * 2.0D / (var15 * (var15 + 1.0D));
                     }
                  }
               }
            }
         }
      }
   }

   private Object n(zabd var1, Cell var2) {
      Object var3 = this.H((zabd)var1.d().get(0), var2);
      if (var3 instanceof zst) {
         return var3;
      } else {
         double var4 = (Double)var3;
         var3 = this.H((zabd)var1.d().get(1), var2);
         if (var3 instanceof zst) {
            return var3;
         } else {
            double var6 = (Double)var3;
            var3 = this.H((zabd)var1.d().get(2), var2);
            if (var3 instanceof zst) {
               return var3;
            } else {
               double var8 = (Double)var3;
               Object var10 = this.b((zabd)var1.d().get(3), var2);
               var10 = zyn.a(var10, var2, this.e.getSettings().getDate1904(), true);
               if (var10 instanceof zst) {
                  return var10;
               } else {
                  double[] var11 = (double[])((double[])var10);
                  return zamz.a(var4, var6, var8, var11);
               }
            }
         }
      }
   }

   private Object a(zabd var1, Cell var2, boolean var3) {
      Object var4 = this.b((zabd)var1.d().get(0), var2);
      if (var4 == null) {
         return zst.i;
      } else if (var4 instanceof zst) {
         return var4;
      } else if (!(var4 instanceof Object[])) {
         return zst.i;
      } else {
         Object[][] var5 = (Object[][])((Object[][])var4);
         Object var6 = this.b((zabd)var1.d().get(1), var2);
         if (var6 == null) {
            return zst.i;
         } else if (var6 instanceof zst) {
            return var6;
         } else {
            int var7 = -1;
            boolean var8 = false;
            String[] var9 = new String[var5[0].length];
            if (var6 instanceof Double) {
               var7 = (int)com.aspose.cells.a.c.zi.b(var6) - 1;
               if (var7 < 0 || var7 >= var5[0].length) {
                  return zst.i;
               }

               for(int var23 = 0; var23 < var5[0].length; ++var23) {
                  var9[var23] = com.aspose.cells.b.a.zr.a(var5[0][var23]).toUpperCase();
               }
            } else {
               String var10 = com.aspose.cells.b.a.zr.a(var6).toUpperCase();

               for(int var11 = 0; var11 < var5[0].length; ++var11) {
                  if (var5[0][var11] != null) {
                     var9[var11] = com.aspose.cells.b.a.zr.a(var5[0][var11]).toUpperCase();
                     if (!var8 && com.aspose.cells.b.a.zv.b(var9[var11], var10)) {
                        var8 = true;
                        var7 = var11;
                     }
                  }
               }

               if (!var8) {
                  return zst.i;
               }
            }

            Object var24 = this.b((zabd)var1.d().get(2), var2);
            Object[][] var25 = (Object[][])null;
            Object var12 = null;
            if (var24 == null) {
               return zst.i;
            } else if (var24 instanceof zst) {
               return var24;
            } else if (!(var24 instanceof Object[])) {
               return zst.i;
            } else {
               var25 = zye.a((Object[][])((Object[][])var24));
               int[] var26 = new int[var25[0].length];

               int var13;
               int var15;
               for(var13 = 0; var13 < var25[0].length; ++var13) {
                  if (var25[0][var13] != null) {
                     String var14 = com.aspose.cells.b.a.zr.a(var25[0][var13]).toUpperCase();
                     var8 = false;

                     for(var15 = 0; var15 < var9.length; ++var15) {
                        if (com.aspose.cells.b.a.zv.b(var9[var15], var14)) {
                           var26[var13] = var15;
                           var8 = true;
                           break;
                        }
                     }

                     if (!var8) {
                        return zst.i;
                     }
                  }
               }

               for(var13 = 1; var13 < var25.length; ++var13) {
                  Object[] var28 = var25[var13];

                  for(var15 = 0; var15 < var28.length; ++var15) {
                     if (var25[var13][var15] != null) {
                        String var16 = com.aspose.cells.b.a.zr.a(var25[var13][var15]);
                        if (var16.charAt(0) != '=' && var16.charAt(0) != '<' && var16.charAt(0) != '>') {
                           if (var25[var13][var15] instanceof String) {
                              Object var33 = zyn.a((Object)((String)var25[var13][var15]), (WorkbookSettings)this.e.getSettings());
                              if (var33 != null && !(var33 instanceof zst)) {
                                 var25[var13][var15] = var33;
                              }
                           }

                           var25[var13][var15] = new Object[]{"=", var25[var13][var15]};
                        } else {
                           Object[] var17 = zmc.a(var16, this.e.getSettings());
                           var25[var13][var15] = var17;
                        }
                     }
                  }
               }

               ArrayList var27 = new ArrayList();
               int var29 = 0;

               for(var15 = 1; var15 < var5.length; ++var15) {
                  Object[] var30 = var5[var15];
                  if (var30 != null) {
                     boolean var34 = true;
                     if (var25 != null) {
                        for(int var18 = 1; var18 < var25.length; ++var18) {
                           Object[] var19 = var25[var18];
                           var34 = true;

                           for(int var20 = 0; var20 < var19.length; ++var20) {
                              if (var19[var20] != null) {
                                 Object[] var21 = (Object[])((Object[])var19[var20]);
                                 Object var22 = zmc.b(var5[var15][var26[var20]], var21[1], (String)var21[0], this.e.getSettings().getDate1904());
                                 if (var22 instanceof zst) {
                                    return var22;
                                 }

                                 if (!(Boolean)var22) {
                                    var34 = false;
                                    break;
                                 }
                              }
                           }

                           if (var34) {
                              break;
                           }
                        }
                     }

                     if (var34) {
                        Object var35 = var30[var7];
                        if (var35 != null) {
                           if (var3) {
                              ++var29;
                           }

                           if ("DGET".equals(var1.b())) {
                              com.aspose.cells.b.a.a.ze.a(var27, var35);
                              if (var27.size() > 1) {
                                 return zst.f;
                              }
                           } else {
                              var35 = zyn.e(var35, this.e.getSettings().getDate1904());
                              if (!(var35 instanceof zst)) {
                                 com.aspose.cells.b.a.a.ze.a(var27, var35);
                              }
                           }
                        }
                     }
                  }
               }

               switch(u.a(var1.b())) {
               case 0:
                  return (double)var27.size();
               case 1:
                  return (double)var29;
               case 2:
                  if (var27.size() == 0) {
                     return zst.i;
                  }

                  if (var27.size() > 1) {
                     return zst.f;
                  }

                  return var27.get(0);
               case 3:
               case 4:
               case 5:
               case 6:
               case 7:
                  if (var27.size() == 0) {
                     return zst.a;
                  }
                  break;
               default:
                  if (var27.size() == 0) {
                     return 0.0D;
                  }
               }

               double[] var32 = new double[var27.size()];

               for(int var31 = 0; var31 < var27.size(); ++var31) {
                  var32[var31] = (Double)var27.get(var31);
               }

               switch(u.a(var1.b())) {
               case 3:
                  return zbop.a(var32, 1, var32.length);
               case 4:
                  return zbop.f(var32);
               case 5:
                  return zbop.h(var32);
               case 6:
                  return zbop.g(var32);
               case 7:
                  return zbop.i(var32);
               case 8:
                  return zbop.d(var32);
               case 9:
                  return zbop.c(var32);
               case 10:
                  return zbop.e(var32);
               case 11:
                  return zbop.j(var32);
               default:
                  return null;
               }
            }
         }
      }
   }

   private Object o(zabd var1, Cell var2) {
      Object var3 = this.H((zabd)var1.d().get(0), var2);
      if (var3 instanceof zst) {
         return var3;
      } else {
         zabd var4 = (zabd)var1.d().get(1);
         Object var5 = this.b(var4, var2);
         var5 = zyn.a(var5, var2, this.e.getSettings().getDate1904(), true);
         if (var5 instanceof zst) {
            return var5;
         } else {
            double[] var6 = (double[])((double[])var5);
            return zvp.a((Double)var3, var6);
         }
      }
   }

   private Object a(zabd var1, Cell var2, int var3) {
      Object[] var4 = new Object[var3];

      for(int var5 = 0; var5 < var3; ++var5) {
         zabd var6 = (zabd)var1.d().get(var5);
         Object var7 = this.b(var6, var2);
         if (var7 instanceof zst) {
            return var7;
         }

         var4[var5] = var7;
      }

      Object var8 = zyn.a(var4[0], var4[1], this.e.getSettings());
      if (var8 instanceof zst) {
         return var8;
      } else {
         var4 = (Object[])((Object[])var8);
         switch(u.a(var1.b())) {
         case 12:
            return zbop.c((double[])((double[])var4[0]), (double[])((double[])var4[1]));
         case 13:
            return zbop.a((double[])((double[])var4[0]), (double[])((double[])var4[1]));
         default:
            return null;
         }
      }
   }

   private Object b(zabd var1, Cell var2, int var3) {
      Object[] var4 = new Object[var3];

      Object var7;
      for(int var5 = 0; var5 < var3; ++var5) {
         zabd var6 = (zabd)var1.d().get(var5);
         var7 = this.b(var6, var2);
         var7 = zyn.a(var7, var2, this.e.getSettings().getDate1904(), false);
         if (var7 instanceof zst) {
            return var7;
         }

         var4[var5] = var7;
      }

      switch(u.a(var1.b())) {
      case 14:
         return zbop.d((double[])((double[])var4[0]), (double[])((double[])var4[1]));
      case 15:
         Object var10 = this.H((zabd)var1.d().get(1), var2);
         if (var10 instanceof zst) {
            return var10;
         } else {
            Object var11 = this.H((zabd)var1.d().get(2), var2);
            if (var11 instanceof zst) {
               return var11;
            }

            return zvp.a((double[])((double[])var4[0]), (Double)var10, (Double)var11);
         }
      case 16:
         return zbop.b((double[])((double[])var4[0]), (double[])((double[])var4[1]));
      case 17:
         if (((double[])((double[])var4[0])).length != ((double[])((double[])var4[1])).length) {
            return zst.c;
         }

         return zamz.a((double[])((double[])var4[0]), (double[])((double[])var4[1]));
      case 18:
         if (((double[])((double[])var4[0])).length != ((double[])((double[])var4[1])).length) {
            return zst.c;
         }

         return zamz.b((double[])((double[])var4[0]), (double[])((double[])var4[1]));
      case 19:
         if (((double[])((double[])var4[0])).length != ((double[])((double[])var4[1])).length) {
            return zst.c;
         }

         return zamz.c((double[])((double[])var4[0]), (double[])((double[])var4[1]));
      case 20:
         var7 = this.H((zabd)var1.d().get(1), var2);
         if (var7 instanceof zst) {
            return var7;
         }

         return zbop.a((double[])((double[])var4[0]), (Double)var7);
      case 21:
         Object var8 = this.H((zabd)var1.d().get(1), var2);
         if (var8 instanceof zst) {
            return var8;
         } else {
            if (var1.d().size() >= 3) {
               Object var9 = this.H((zabd)var1.d().get(2), var2);
               if (var9 instanceof zst) {
                  return var9;
               }

               return zbop.b((double[])((double[])var4[0]), (Double)var8, (Double)var9);
            }

            return zbop.c((double[])((double[])var4[0]), (Double)var8);
         }
      default:
         return null;
      }
   }

   private Object p(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      zabd var4 = (zabd)var1.d().get(1);
      zabd var5 = (zabd)var1.d().get(2);
      zabd var6 = (zabd)var1.d().get(3);
      Object var7 = this.b(var3, var2);
      Object var8 = this.b(var4, var2);
      Object var9 = this.b(var5, var2);
      Object var10 = this.b(var6, var2);
      if (var7 == null) {
         var7 = 0.0D;
      }

      if (var8 == null) {
         var8 = 0.0D;
      }

      if (var9 == null) {
         return zst.a;
      } else {
         if (var10 == null) {
            var10 = 0.0D;
         }

         var7 = zyn.e(var7, this.e.getSettings().getDate1904());
         if (var7 instanceof zst) {
            return var7;
         } else {
            var8 = zyn.e(var8, this.e.getSettings().getDate1904());
            if (var8 instanceof zst) {
               return var8;
            } else {
               var9 = zyn.e(var9, this.e.getSettings().getDate1904());
               if (var9 instanceof zst) {
                  return var9;
               } else {
                  var10 = zyn.e(var10, this.e.getSettings().getDate1904());
                  if (var10 instanceof zst) {
                     return var10;
                  } else {
                     double var11 = (Double)var7;
                     double var13 = (Double)var8;
                     double var15 = (Double)var9;
                     if (var15 == 0.0D) {
                        return zst.a;
                     } else {
                        double var17 = (Double)var10;
                        double var19 = 2.0D;
                        if (var1.d().size() > 4) {
                           zabd var21 = (zabd)var1.d().get(4);
                           Object var22 = this.b(var21, var2);
                           var22 = zyn.e(var22, this.e.getSettings().getDate1904());
                           if (var22 == null) {
                              var19 = 0.0D;
                           } else {
                              if (var22 instanceof zst) {
                                 return var22;
                              }

                              var19 = (Double)var22;
                           }
                        }

                        return zvp.f(var11, var13, var15, var17, var19);
                     }
                  }
               }
            }
         }
      }
   }

   private Object q(zabd var1, Cell var2) {
      Object[] var3 = new Object[3];

      int var4;
      for(var4 = 0; var4 < 3; ++var4) {
         zabd var5 = (zabd)var1.d().get(var4);
         var3[var4] = this.b(var5, var2);
         var3[var4] = zyn.e(var3[var4], this.e.getSettings().getDate1904());
         if (var3[var4] instanceof zst) {
            return var3[var4];
         }

         switch(zamo.a(var3[var4].getClass())) {
         case 14:
            var3[var4] = (int)com.aspose.cells.a.c.zi.b(var3[var4]);
            break;
         case 16:
            switch(var4) {
            case 0:
               var3[0] = ((DateTime)var3[0]).getHour();
               continue;
            case 1:
               var3[1] = ((DateTime)var3[1]).getMinute();
               continue;
            case 2:
               var3[2] = ((DateTime)var3[2]).getSecond();
            default:
               continue;
            }
         default:
            return zst.i;
         }
      }

      var4 = (Integer)var3[0];
      int var9 = (Integer)var3[1];
      int var6 = (Integer)var3[2];
      var9 += var6 / 60;
      var6 %= 60;
      var4 += var9 / 60;
      var9 %= 60;
      var4 %= 24;
      double var7 = (double)(var4 * 3600 + var9 * 60 + var6) / 86400.0D;
      if (var7 < 0.0D) {
         return zst.f;
      } else {
         return var7;
      }
   }

   private Object r(zabd var1, Cell var2) {
      int var3 = 0;
      zabd var4 = (zabd)var1.d().get(0);
      Object var5 = this.b(var4, var2);
      var5 = zyn.e(var5, this.e.getSettings().getDate1904());
      if (var5 instanceof zst) {
         return var5;
      } else {
         Object var6 = null;
         if (var1.d().size() == 2) {
            var6 = this.b((zabd)var1.d().get(1), var2);
            var6 = zyn.e(var6, this.e.getSettings().getDate1904());
            if (var6 instanceof zst) {
               return var6;
            }
         }

         double var7 = (Double)var5;
         if (var7 == 0.0D) {
            return var7;
         } else {
            if (var6 != null) {
               var3 = (int)com.aspose.cells.a.c.zi.b(var6);
            }

            if (var3 == 0) {
               return var7 > 0.0D ? Math.floor(var7) : Math.ceil(var7);
            } else {
               double var9 = Math.pow(10.0D, (double)var3);
               if (var3 < 0) {
                  var3 = 0;
               }

               return var7 > 0.0D ? com.aspose.cells.b.a.zq.b(Math.floor(var7 * var9) / var9, var3) : com.aspose.cells.b.a.zq.b(Math.ceil(var7 * var9) / var9, var3);
            }
         }
      }
   }

   private Object b(zabd var1, Cell var2, boolean var3) {
      zabd var4 = (zabd)var1.d().get(0);
      Object var5 = this.b(var4, var2);
      if (var5 == null) {
         return "";
      } else if (var5 instanceof zst) {
         return var5;
      } else {
         return var3 ? com.aspose.cells.b.a.zr.a(var5).toUpperCase() : com.aspose.cells.b.a.zr.a(var5).toLowerCase();
      }
   }

   private Object s(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return "";
      } else if (var4 instanceof zst) {
         return var4;
      } else if (!(var4 instanceof Object[][])) {
         var4 = zyn.a(var4);
         return var4 instanceof zst ? var4 : zbso.b((String)var4);
      } else {
         Object[][] var5 = zye.a((Object[][])((Object[][])var4));

         for(int var6 = 0; var6 < var5.length; ++var6) {
            Object[] var7 = var5[var6];
            if (var7 != null) {
               for(int var8 = 0; var8 < var7.length; ++var8) {
                  Object var9 = var7[var8];
                  if (var9 != null) {
                     var7[var8] = com.aspose.cells.b.a.zr.a(var9).trim();
                  }
               }
            }
         }

         return var5;
      }
   }

   private Object t(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return 0.0D;
      } else {
         switch(zamo.a(var4.getClass())) {
         case 3:
            return zst.i;
         case 18:
            return zyn.a(var4, this.e.getSettings());
         default:
            return var4;
         }
      }
   }

   private Object a(zabd var1, Worksheet var2, Cell var3, int var4, int var5) {
      String var8 = null;
      if (var1 != null && var1.c() != null) {
         var8 = var1.c().b();
         if (var1.c().c() != null && var1.c().f()[0] == 21) {
            var8 = var1.c().c().b();
         }
      }

      Cell var6;
      Object var7;
      if (var8 != null) {
         zft var9;
         switch(u.a(var8)) {
         case 22:
            if (var1.c().d().get(1) == var1) {
               var9 = new zft();
               var9.d.StartRow = var9.d.EndRow = var4;
               var9.d.StartColumn = var9.d.EndColumn = var5;
               var9.b = var2.getIndex();
               return var9;
            }

            var6 = var2.getCells().getRows().a.a(var4, var5);
            this.a(var3, var2.getIndex(), var4, var5);
            if (var6 == null) {
               return null;
            }

            if (var6.c.c == 0) {
               return null;
            }

            var7 = this.a(var6);
            return var7;
         case 23:
            return (double)(var5 + 1);
         case 24:
         case 25:
            return 1.0D;
         case 26:
            var6 = var2.getCells().getRows().a.a(var4, var5);
            this.a(var3, var2.getIndex(), var4, var5);
            if (var6 == null) {
               return null;
            }

            var7 = this.a(var6);
            return var7;
         case 27:
         case 28:
            var6 = var2.getCells().getRows().a.a(var4, var5);
            this.a(var3, var2.getIndex(), var4, var5);
            if (var6 == null) {
               return 0.0D;
            }

            var7 = this.a(var6);
            if (var7 == null) {
               return 0.0D;
            }

            if ("COUNTA".equals(var1.c().b())) {
               return 1.0D;
            }

            if (zamo.a(var7.getClass()) == 14) {
               return 1.0D;
            }

            return 0.0D;
         case 29:
            if (var1.c().c() != null && var1.c().d().get(0) != var1 && "SUM".equals(var1.c().c().b())) {
               var9 = new zft();
               var9.d.StartRow = var4;
               var9.d.EndRow = var4;
               var9.d.StartColumn = var5;
               var9.d.EndColumn = var5;
               var9.b = var2.getIndex();
               var9.a = this.e.getWorksheets().u();
               var9.c = var2;
               return var9;
            }

            var6 = var2.getCells().getRows().a.a(var4, var5);
            this.a(var3, var2.getIndex(), var4, var5);
            if (var6 == null) {
               return null;
            }

            var7 = this.a(var6);
            return var7;
         case 30:
            return (double)(var4 + 1);
         case 31:
            var6 = var2.getCells().getRows().a.a(var4, var5);
            this.a(var3, var2.getIndex(), var4, var5);
            if (var6 == null) {
               return null;
            }

            if (var6.c.c == 0) {
               return null;
            }

            var7 = this.a(var6);
            return var7;
         case 32:
         case 33:
            var9 = new zft();
            var9.d.StartRow = var4;
            var9.d.EndRow = var4;
            var9.d.StartColumn = var5;
            var9.d.EndColumn = var5;
            var9.b = var2.getIndex();
            var9.a = this.e.getWorksheets().u();
            var9.c = var2;
            return var9;
         case 34:
            if (var1.e() == 2) {
               var9 = new zft();
               var9.d.StartRow = var4;
               var9.d.EndRow = var4;
               var9.d.StartColumn = var5;
               var9.d.EndColumn = var5;
               var9.b = var2.getIndex();
               var9.a = this.e.getWorksheets().u();
               var9.c = var2;
               return var9;
            }
            break;
         case 35:
            if (var1.c().d().get(1) == var1) {
               var9 = new zft();
               var9.d.StartRow = var4;
               var9.d.EndRow = var4;
               var9.d.StartColumn = var5;
               var9.d.EndColumn = var5;
               var9.b = var2.getIndex();
               var9.a = this.e.getWorksheets().u();
               var9.c = var2;
               return var9;
            }

            var6 = var2.getCells().getRows().a.a(var4, var5);
            this.a(var3, var2.getIndex(), var4, var5);
            if (var6 == null) {
               return null;
            }

            if (var6.c.c == 0) {
               return null;
            }

            var7 = this.a(var6);
            return var7;
         }
      }

      var6 = var2.getCells().getRows().a.a(var4, var5);
      this.a(var3, var2.getIndex(), var4, var5);
      if (var6 == null) {
         return null;
      } else if (var6.c.c == 0) {
         return null;
      } else {
         var7 = this.a(var6);
         if (this.p && var6.f() && var6.H() && var3 != null && !var3.H()) {
            String var12 = var3.d.h().getName() + "!" + var3.i();
            zjv var10 = new zjv();
            zabd var11 = this.e.getWorksheets().x().a(var3);
            var10.a = var11;
            var10.b = 1;
            var10.c = var3.getValue();
            var10.d = false;
            var10.e = this.q.size();
            var10.f = var3;
            var3.b(true);
            this.a().put(var12, var10);
            com.aspose.cells.b.a.a.ze.a(this.r, (Object)var10);
         }

         return var7;
      }
   }

   private Object b(zabd var1, Worksheet var2, Cell var3, int var4, int var5, int var6, int var7) {
      double[][] var8 = new double[var5 - var4 + 1][];

      for(int var9 = 0; var9 <= var5 - var4; ++var9) {
         var8[var9] = new double[var7 - var6 + 1];
      }

      zahr var17 = var2.getCells().getRows().a.a(var4, var5, false);

      int var14;
      do {
         if (!var17.hasNext()) {
            return var8;
         }

         Row var11 = var17.f();
         double[] var15 = var8[var11.getIndex() - var4];
         zahl var10 = var11.a.b(var6, var7, false);
         if (var10 == null) {
            return zst.i;
         }

         var14 = var6;

         while(true) {
            int var13 = var10.a();
            if (var13 < 0) {
               break;
            }

            Cell var12 = new Cell(var11, var13);
            if (var12.getColumn() > var14) {
               return zst.i;
            }

            Object var16 = this.a(var12);
            if (var12.f()) {
               var17.g();
            }

            if (var16 == null) {
               return zst.i;
            }

            if (var16 instanceof zst) {
               return var16;
            }

            switch(zamo.a(var16.getClass())) {
            case 14:
               var15[var14 - var6] = (Double)var16;
               break;
            case 16:
               var15[var14 - var6] = CellsHelper.getDoubleFromDateTime((DateTime)var16, this.e.getSettings().getDate1904());
               break;
            default:
               return zst.i;
            }

            ++var14;
         }
      } while(var14 > var7);

      return zst.i;
   }

   private Object a(zabd var1, Worksheet var2, Cell var3, int var4, int var5, int var6, int var7, boolean var8) {
      double[][] var9 = new double[var5 - var4 + 1][];

      for(int var10 = 0; var10 <= var5 - var4; ++var10) {
         var9[var10] = new double[var7 - var6 + 1];
      }

      zahr var17 = var2.getCells().getRows().a.a(var4, var5, false);

      while(true) {
         zahl var11;
         Row var12;
         double[] var14;
         do {
            if (!var17.hasNext()) {
               return var9;
            }

            var12 = var17.f();
            var14 = var9[var12.getIndex() - var4];
            var11 = var12.a.b(var6, var7, false);
         } while(var11 == null);

         while(true) {
            int var15 = var11.a();
            if (var15 < 0) {
               break;
            }

            Cell var13 = new Cell(var12, var15);
            Object var16 = this.a(var13);
            if (var13.f()) {
               var17.g();
            }

            if (var9 == null) {
               var14[var13.getColumn() - var6] = 0.0D;
            } else {
               if (!var8 && var16 instanceof zst) {
                  return var16;
               }

               if (!(var16 instanceof Double)) {
                  var14[var13.getColumn() - var6] = 0.0D;
               } else {
                  var14[var13.getColumn() - var6] = (Double)var16;
               }
            }
         }
      }
   }

   Object a(zabd var1, Cell var2, Object[][] var3) {
      ArrayList var4 = new ArrayList();

      for(int var5 = 0; var5 < var3.length; ++var5) {
         Object[] var6 = var3[var5];
         if (var6 != null) {
            for(int var7 = 0; var7 < var6.length; ++var7) {
               Object var8 = var6[var7];
               if (var8 instanceof zft) {
                  zft var9 = (zft)var8;
                  Worksheet var10 = this.e.getWorksheets().get(var9.b);
                  var8 = this.a(var1, var10, var2, var9.d.StartRow, var9.d.EndRow, var9.d.StartColumn, var9.d.EndColumn);
               }

               if (var8 != null) {
                  if (!(var8 instanceof Object[][])) {
                     com.aspose.cells.b.a.a.ze.a(var4, var8);
                  } else {
                     Object[][] var14 = (Object[][])((Object[][])var8);

                     for(int var15 = 0; var15 < var14.length; ++var15) {
                        if (var14[var15] != null) {
                           for(int var11 = 0; var11 < var14[var15].length; ++var11) {
                              if (var14[var15][var11] != null) {
                                 com.aspose.cells.b.a.a.ze.a(var4, var14[var15][var11]);
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }

      Object[][] var12 = new Object[][]{new Object[var4.size()]};

      for(int var13 = 0; var13 < var4.size(); ++var13) {
         var12[0][var13] = var4.get(var13);
      }

      return var12;
   }

   Object a(zabd var1, Worksheet var2, Cell var3, int var4, int var5, int var6, int var7) {
      if (var1.c() != null && var3 != null && !var3.y()) {
         switch(u.a(var1.c().b())) {
         case 36:
            if (var4 != var5) {
               if (var6 != var7) {
                  return zst.i;
               }

               if (var3.getRow() >= var4 && var3.getRow() <= var5) {
                  return this.a(var1, var2, var3, var3.getRow(), var6);
               }

               return zst.i;
            }
         }
      }

      zem var8 = this.a(var2.getIndex(), var4, var6, var5, var7, true, true, true);
      return var8 != null ? var8.f : null;
   }

   private Object b(zabd var1, Worksheet var2, Cell var3, int var4, int var5, int var6, int var7, boolean var8) {
      return this.a(var1, var2, var3, var4, var5, var6, var7, var8, false);
   }

   private Object a(zabd var1, Worksheet var2, Cell var3, int var4, int var5, int var6, int var7, boolean var8, boolean var9) {
      if (var1.c() == null && this.d) {
         return this.a(var1, var2, var3, var4, var5, var6, var7);
      } else {
         boolean var10 = false;
         if (!var8) {
            var8 = var3 != null && var3.y();
         }

         if (!var8) {
            var10 = zfm.a(var1, var9);
         }

         if (var10) {
            if (this.c) {
               return this.a(var1, var2, var3, var4, var6);
            } else {
               int[] var23 = zfm.a(var3, var4, var6, var5, var7);
               return var23 != null ? this.a(var1, var2, var3, var23[0], var23[1]) : zst.i;
            }
         } else {
            boolean var13 = true;
            double var14 = 0.0D;
            int var18;
            if (var4 > var5) {
               var18 = var4;
               var4 = var5;
               var5 = var18;
            }

            if (var6 > var7) {
               var18 = var6;
               var6 = var7;
               var7 = var18;
            }

            if (this.a == 0 && this.j && var3 != null) {
               var3.d.b.e.a(((zyi)var3.c.d).a, var2.getIndex(), var4, var6, var5, var7);
            }

            if (var1.c() == null) {
               return this.a(var1, var2, var3, var4, var5, var6, var7);
            } else {
               Object var11;
               Cell var12;
               zahl var19;
               int var20;
               Row var21;
               int var22;
               zft var24;
               zahr var26;
               switch(u.a(var1.c().b())) {
               case 23:
                  return (double)(var6 + 1);
               case 24:
                  return (double)(var7 - var6 + 1);
               case 25:
                  return (double)(var5 - var4 + 1);
               case 26:
                  return zst.i;
               case 27:
               case 28:
               case 62:
               case 63:
               case 64:
               case 65:
               case 66:
               case 67:
               case 68:
               case 69:
                  if (var5 > this.a(var2.getIndex())) {
                     var5 = this.a(var2.getIndex());
                     if (var5 < var4) {
                        var4 = var5;
                     }
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 29:
                  if (!var8 && !var3.y()) {
                     if (var1.c().f()[0] == 34) {
                        if (var1.c().c() != null) {
                           zabd var29 = var1.c().c();
                           switch(u.a(var29.b())) {
                           case 34:
                              if (var29.d().get(1) != var1.c() && (var29.d().size() <= 2 || var29.d().get(2) != var1.c())) {
                                 break;
                              }

                              return this.a(var1, var2, var3, var4, var5, var6, var7);
                           case 44:
                              if (var29.d().get(1) != var1) {
                                 var5 = Math.min(this.b(var2.getIndex()), var5);
                                 zft var27 = new zft();
                                 var27.d.StartRow = var4;
                                 var27.d.EndRow = var5;
                                 var27.d.StartColumn = var6;
                                 var27.d.EndColumn = var7;
                                 var27.b = var2.getIndex();
                                 return var27;
                              }

                              return this.a(var1, var2, var3, var4, var5, var6, var7);
                           }
                        }

                        if (var1.c().d().get(0) != var1) {
                           return this.a(var1, var2, var3, var4, var5, var6, var7);
                        }

                        int[] var30 = zfm.a(var3, var4, var6, var5, var7);
                        if (var30 != null) {
                           return this.a(var1, var2, var3, var30[0], var30[1]);
                        }
                     }

                     return zst.i;
                  } else {
                     var18 = var2.getCells().getMaxRow();
                     if (var5 > var18) {
                        var5 = var18;
                     }

                     return this.a(var1, var2, var3, var4, var5, var6, var7);
                  }
               case 30:
                  if (var3 != null && var3.y()) {
                     Object[][] var28 = new Object[var5 - var4 + 1][];

                     for(int var25 = 0; var25 < var28.length; ++var25) {
                        var28[var25] = new Object[]{(double)(var4 + var25 + 1)};
                     }

                     return var28;
                  }

                  return (double)(var4 + 1);
               case 31:
               case 36:
               default:
                  if (var5 > this.a(var2.getIndex())) {
                     var5 = this.a(var2.getIndex());
                     if (var5 < var4) {
                        var4 = var5;
                     }
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 32:
                  var24 = new zft();
                  var24.d.StartRow = var4;
                  var24.d.EndRow = var5;
                  var24.d.StartColumn = var6;
                  var24.d.EndColumn = var7;
                  var24.b = var2.getIndex();
                  var24.a = this.e.getWorksheets().u();
                  return var24;
               case 33:
               case 70:
               case 71:
               case 72:
                  var24 = new zft();
                  var24.d.StartRow = var4;
                  var24.d.EndRow = var5;
                  var24.d.StartColumn = var6;
                  var24.d.EndColumn = var7;
                  var24.b = var2.getIndex();
                  var24.c = var2;
                  return var24;
               case 34:
                  if (var1.c().d().size() > 2 && var1.c().d().get(2) == var1) {
                     var24 = new zft();
                     var24.d.StartRow = var4;
                     var24.d.EndRow = var5;
                     var24.d.StartColumn = var6;
                     var24.d.EndColumn = var7;
                     var24.b = var2.getIndex();
                     return var24;
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 35:
                  if (var1.c().d().get(1) == var1) {
                     var24 = new zft();
                     var24.d.StartRow = var4;
                     var24.d.EndRow = var5;
                     var24.d.StartColumn = var6;
                     var24.d.EndColumn = var7;
                     var24.b = var2.getIndex();
                     var24.c = var2;
                     return var24;
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 37:
                  return zst.i;
               case 38:
                  var26 = var2.getCells().getRows().a.a(var4, var5, false);

                  while(true) {
                     do {
                        if (!var26.hasNext()) {
                           if (!var13) {
                              return true;
                           }

                           return null;
                        }

                        var21 = var26.f();
                        var22 = var21.getIndex();
                        var19 = var21.a.b(var6, var7, false);
                     } while(var19 == null);

                     while(true) {
                        var20 = var19.a();
                        if (var20 < 0) {
                           break;
                        }

                        var12 = new Cell(var21, var20);
                        var11 = this.a(var12);
                        if (var12.f()) {
                           var26.g();
                        }

                        if (var11 != null) {
                           if (zamo.a(var11.getClass()) == 14) {
                              var14 = (Double)var11;
                              if (Math.abs(var14) < Double.MIN_VALUE) {
                                 return false;
                              }

                              var13 = false;
                           }

                           if (zamo.a(var11.getClass()) == 3) {
                              if (!(Boolean)var11) {
                                 return false;
                              }

                              var13 = false;
                           }
                        }
                     }
                  }
               case 39:
                  var26 = var2.getCells().getRows().a.a(var4, var5, false);

                  while(true) {
                     do {
                        if (!var26.hasNext()) {
                           if (!var13) {
                              return false;
                           }

                           return null;
                        }

                        var21 = var26.f();
                        var22 = var21.getIndex();
                        var19 = var21.a.b(var6, var7, false);
                     } while(var19 == null);

                     while(true) {
                        var20 = var19.a();
                        if (var20 < 0) {
                           break;
                        }

                        var12 = new Cell(var21, var20);
                        var11 = this.a(var12);
                        if (var12.f()) {
                           var26.g();
                        }

                        if (var11 != null) {
                           if (zamo.a(var11.getClass()) == 14) {
                              var14 = (Double)var11;
                              if (Math.abs(var14) >= Double.MIN_VALUE) {
                                 return true;
                              }

                              var13 = false;
                           }

                           if (zamo.a(var11.getClass()) == 3) {
                              if ((Boolean)var11) {
                                 return true;
                              }

                              var13 = false;
                           }
                        }
                     }
                  }
               case 40:
                  if (var1.c().d().get(0) == var1) {
                     var24 = new zft();
                     var24.d.StartRow = var4;
                     var24.d.EndRow = var5;
                     var24.d.StartColumn = var6;
                     var24.d.EndColumn = var7;
                     var24.b = var2.getIndex();
                     return var24;
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 41:
               case 42:
               case 43:
                  if (var1.c().d().get(1) == var1) {
                     var24 = new zft();
                     var24.d.StartRow = var4;
                     var24.d.EndRow = var5;
                     var24.d.StartColumn = var6;
                     var24.d.EndColumn = var7;
                     var24.b = var2.getIndex();
                     return var24;
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 44:
               case 45:
               case 46:
                  if (var1.c().d().get(1) != var1) {
                     var5 = Math.min(this.b(var2.getIndex()), var5);
                     var24 = new zft();
                     var24.d.StartRow = var4;
                     var24.d.EndRow = var5;
                     var24.d.StartColumn = var6;
                     var24.d.EndColumn = var7;
                     var24.b = var2.getIndex();
                     return var24;
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 47:
               case 48:
               case 49:
               case 50:
               case 51:
               case 52:
                  var24 = new zft();
                  var24.d.StartRow = var4;
                  var24.d.EndRow = Math.min(this.b(var2.getIndex()), var5);
                  var24.d.StartColumn = var6;
                  var24.d.EndColumn = var7;
                  var24.b = var2.getIndex();
                  return var24;
               case 53:
                  if (var1.c().d().get(0) != var1) {
                     var24 = new zft();
                     var24.d.StartRow = var4;
                     var24.d.StartColumn = var6;
                     var24.d.EndRow = var5;
                     var24.d.EndColumn = var7;
                     var24.b = var2.getIndex();
                     return var24;
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7);
               case 54:
                  return this.a(var1, var2, var3, var4, var5, var6, var7, false);
               case 55:
               case 56:
               case 57:
               case 58:
               case 59:
                  return this.a(var1, var2, var3, var4, var5, var6, var7, true);
               case 60:
                  if (var5 > this.a(var2.getIndex())) {
                     var5 = this.a(var2.getIndex());
                     if (var5 < var4) {
                        var4 = var5;
                     }
                  }

                  return this.a(var1, var2, var3, var4, var5, var6, var7, true);
               case 61:
                  return this.b(var1, var2, var3, var4, var5, var6, var7);
               }
            }
         }
      }
   }

   void a(Cell var1, int var2, int var3, int var4) {
      if (this.a == 0 && this.j && var1 != null) {
         var1.d.b.e.a(((zyi)var1.c.d).a, var2, var3, var4);
      }
   }

   private Object u(zabd var1, Cell var2) {
      byte var4 = 0;
      byte var5 = 0;
      byte var7 = 0;
      byte var8 = 0;
      int var3;
      int var6;
      int var9;
      int var10;
      int var12;
      Name var14;
      zabd var15;
      zur var16;
      int var17;
      Object[][] var18;
      int var19;
      int var24;
      boolean var25;
      int var26;
      boolean var27;
      int var28;
      boolean var29;
      int var30;
      boolean var31;
      boolean var32;
      int[] var39;
      int[] var40;
      int var43;
      switch(var1.f()[0]) {
      case 23:
         int var11 = com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff';
         if (var11 == 0) {
            return "";
         }

         return Encoding.getUnicode().a(var1.f(), 3, var11 * 2);
      case 24:
         if (var1.f()[1] == 25) {
            byte var37 = 0;
            byte[] var38 = var1.f();
            int var41 = 0;
            var43 = 0;
            if (var2 != null) {
               var41 = var2.getRow();
               var43 = var2.getColumn();
            }

            int[] var45 = zbsg.a(this.e.getWorksheets(), var38, var37, var41, var43, false);
            if (var45 == null) {
               return zst.g;
            } else {
               var9 = var45[0];
               var17 = var45[1];
               int var48 = var45[2];
               var19 = var45[3];
               int var20 = var45[4];
               var10 = this.e.getWorksheets().q().d(var9);
               if ((var38[var37 + 5] & 255 & 8) != 0) {
                  return this.b(var1, this.e.getWorksheets().get(var10), var2, var17, var19, var48, var48, true);
               } else if (zyn.a(var1) && var2 != null) {
                  int var21 = var2.getRow();
                  if ((var21 < var17 || var21 > var19) && var17 == var19) {
                     var21 = var17;
                  }

                  return this.a(var1, this.e.getWorksheets().get(var10), var2, var21, var48);
               } else {
                  return this.b(var1, this.e.getWorksheets().get(var10), var2, var17, var19, var48, var20, false);
               }
            }
         } else {
            if (var1.f()[1] == 29) {
               var12 = com.aspose.cells.b.a.zc.a(var1.f(), 2);
               if (this.e.getWorksheets().a() != null) {
                  return ((zaut)this.e.getWorksheets().a()).b(var12);
               }
            }

            return zst.g;
         }
      case 25:
      case 26:
      case 27:
      case 33:
      case 34:
      case 38:
      case 39:
      case 40:
      case 41:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 62:
      case 63:
      case 65:
      case 66:
      case 70:
      case 71:
      case 72:
      case 73:
      case 78:
      case 79:
      case 80:
      case 81:
      case 82:
      case 83:
      case 84:
      case 85:
      case 86:
      case 87:
      case 88:
      case 94:
      case 95:
      case 97:
      case 98:
      case 102:
      case 103:
      case 104:
      case 105:
      case 110:
      case 111:
      case 112:
      case 113:
      case 114:
      case 115:
      case 116:
      case 117:
      case 118:
      case 119:
      case 120:
      default:
         return null;
      case 28:
         return zsk.a(var1.f()[1]);
      case 29:
         if (var1.f()[1] == 0) {
            return false;
         }

         return true;
      case 30:
         if (var1.c() == null) {
            return (double)(com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff');
         } else {
            switch(u.a(var1.c().b())) {
            case 27:
               return 1.0D;
            default:
               return (double)(com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff');
            }
         }
      case 31:
         if (var1.c() == null) {
            return com.aspose.cells.b.a.zc.f(var1.f(), 1);
         } else {
            switch(u.a(var1.c().b())) {
            case 27:
               return 1.0D;
            default:
               return com.aspose.cells.b.a.zc.f(var1.f(), 1);
            }
         }
      case 32:
      case 64:
      case 96:
         if (var1.d() != null && var1.d().size() != 0) {
            return var1.d().get(0);
         }

         return null;
      case 35:
      case 67:
      case 99:
         if (this.e.getWorksheets().getNames().getCount() == 0) {
            return null;
         } else {
            var12 = com.aspose.cells.b.a.zc.e(var1.f(), 1);
            Name var36 = this.e.getWorksheets().getNames().get((var12 & '\uffff') - 1);
            var32 = false;
            var25 = false;
            var27 = false;
            var29 = false;
            var31 = false;
            var14 = null;
            if (var2 != null) {
               var39 = var36.a(var2.getRow(), var2.getColumn(), false);
            } else {
               var39 = var36.a(0, 0, false);
            }

            if (var39 != null) {
               var9 = var39[0];
               var24 = var39[1];
               var28 = var39[2];
               var26 = var39[3];
               var30 = var39[4];
               var43 = this.e.getWorksheets().q().c(var9);
               var10 = this.e.getWorksheets().q().d(var9);
               if (var10 >= 0 && var10 < 65535) {
                  if (var43 == this.e.getWorksheets().u()) {
                     if (var24 == var26 && var28 == var30) {
                        return this.a(var1, this.e.getWorksheets().get(var10), var2, var24, var28);
                     }

                     if (var1.f()[0] == 67 && var2 != null && !var2.y()) {
                        try {
                           if (var24 == var26) {
                              if (var2.getColumn() <= var30 && var2.getColumn() >= var28) {
                                 return this.a(var1, this.e.getWorksheets().get(var10), var2, var24, var2.getColumn());
                              }
                           } else if (var28 == var30 && var2.getRow() <= var26 && var2.getRow() >= var24) {
                              return this.a(var1, this.e.getWorksheets().get(var10), var2, var2.getRow(), var28);
                           }
                        } catch (Exception var22) {
                           throw new CellsException(5, var22.getMessage());
                        }
                     }

                     return this.b(var1, this.e.getWorksheets().get(var10), var2, var24, var26, var28, var30, false);
                  }

                  if (var24 == var26 && var28 == var30) {
                     return zup.a(this.e.getWorksheets(), var43, var10, var24, var28);
                  }

                  return zup.a(var1, var43, this.e.getWorksheets(), var10, var24, var28, var26, var30, this.l, (String)null);
               }

               return zst.g;
            } else {
               if (var36.getRefersTo() != null && !"".equals(var36.getRefersTo()) && !"=".equals(var36.getRefersTo())) {
                  var15 = this.e.getWorksheets().x().b(var36, var2);
                  Object var44 = this.b(var15, (Cell)null);
                  if (this.a == 2) {
                     return var44;
                  }

                  if (var44 instanceof zft) {
                     zft var47 = (zft)var44;
                     var10 = var47.b;
                     var24 = var47.d.StartRow;
                     var28 = var47.d.StartColumn;
                     var26 = var47.d.EndRow;
                     var30 = var47.d.EndColumn;
                     if (var24 == var26 && var28 == var30) {
                        return this.a(var1, this.e.getWorksheets().get(var10), var2, var24, var28);
                     }

                     if (var1.f()[0] == 67 && var2 != null && !var2.y()) {
                        if (var24 == var26) {
                           if (var2.getColumn() <= var30 && var2.getColumn() >= var28) {
                              return this.a(var1, this.e.getWorksheets().get(var10), var2, var24, var2.getColumn());
                           }
                        } else if (var28 == var30 && var2.getRow() <= var26 && var2.getRow() >= var24) {
                           return this.a(var1, this.e.getWorksheets().get(var10), var2, var2.getRow(), var28);
                        }
                     }

                     return this.b(var1, this.e.getWorksheets().get(var10), var2, var24, var26, var28, var30, false);
                  }

                  return var44;
               }

               return zst.d;
            }
         }
      case 36:
      case 68:
      case 100:
         var3 = com.aspose.cells.b.a.zc.a(var1.f(), 1);
         var6 = zcew.a(var1.f(), 5);
         if (var1.c() != null) {
            zft var34;
            switch(u.a(var1.c().b())) {
            case 24:
            case 25:
               return 1.0D;
            case 29:
               if (var1.c() != null && var1.c().d().get(0) != var1 && var1.c().c() != null && "SUM".equals(var1.c().c().b())) {
                  var34 = new zft();
                  var34.d.StartRow = var3;
                  var34.d.EndRow = var3;
                  var34.d.StartColumn = var6;
                  var34.d.EndColumn = var6;
                  var34.b = var2.d.h().m();
                  return var34;
               }
               break;
            case 32:
            case 33:
            case 71:
               var34 = new zft();
               var34.d.StartRow = var3;
               var34.d.EndRow = var3;
               var34.d.StartColumn = var6;
               var34.d.EndColumn = var6;
               var34.b = var2.d.h().m();
               return var34;
            }
         }

         return this.a(var1, var2.d.h(), var2, var3, var6);
      case 37:
      case 69:
      case 101:
         int[] var33 = new int[]{var4};
         int[] var35 = new int[]{var7};
         var39 = new int[]{var5};
         var40 = new int[]{var8};
         this.a(var1.f(), 1, var33, var35, var39, var40);
         var24 = var33[0];
         var28 = var35[0];
         var26 = var39[0];
         var30 = var40[0];
         return this.b(var1, var2.d.h(), var2, var24, var26, var28, var30, var1.f()[0] == 101);
      case 42:
      case 43:
      case 60:
      case 61:
      case 74:
      case 75:
      case 92:
      case 93:
      case 106:
      case 107:
      case 124:
      case 125:
         return zst.g;
      case 44:
      case 76:
      case 108:
         var3 = zcew.a(var1.f(), 1, var2.getRow(), var1.f()[6]);
         var6 = zcew.b(var1.f(), 5, var2.getColumn(), var1.f()[6]);
         return this.a(var1, var2.d.h(), var2, var3, var6);
      case 45:
      case 77:
      case 109:
         var24 = zcew.a(var1.f(), 1, var2.getRow(), var1.f()[10]);
         var26 = zcew.a(var1.f(), 5, var2.getRow(), var1.f()[12]);
         var28 = zcew.b(var1.f(), 9, var2.getColumn(), var1.f()[10]);
         var30 = zcew.b(var1.f(), 11, var2.getColumn(), var1.f()[12]);
         return this.b(var1, var2.d.h(), var2, var24, var26, var28, var30, false);
      case 57:
      case 89:
      case 121:
         var9 = com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff';
         var12 = com.aspose.cells.b.a.zc.e(var1.f(), 3);
         int var13 = this.e.getWorksheets().q().c(var9);
         var10 = this.e.getWorksheets().q().d(var9);
         if (var13 != this.e.getWorksheets().u()) {
            return zup.a(var1, this.e.getWorksheets(), var13, var10, (var12 & '\uffff') - 1, true, this.l);
         } else if (var10 == -1) {
            return zst.g;
         } else {
            if (var10 >= this.e.getWorksheets().getCount()) {
               var32 = false;
            }

            var14 = this.e.getWorksheets().getNames().get((var12 & '\uffff') - 1);
            var25 = false;
            var27 = false;
            var29 = false;
            var31 = false;
            var15 = null;
            if (var2 != null) {
               var40 = var14.a(var2.getRow(), var2.getColumn(), false);
            } else {
               var40 = var14.a(0, 0, false);
            }

            if (var40 != null && this.e.getWorksheets().q().c(var40[0]) == this.e.getWorksheets().u()) {
               var9 = var40[0];
               var24 = var40[1];
               var28 = var40[2];
               var26 = var40[3];
               var30 = var40[4];
               var10 = this.e.getWorksheets().q().d(var9);
               if (var24 == var26 && var28 == var30) {
                  return this.a(var1, this.e.getWorksheets().get(var10), var2, var24, var28);
               }

               return this.b(var1, this.e.getWorksheets().get(var10), var2, var24, var26, var28, var30, false);
            } else {
               if (var14.getRefersTo() != null && !"".equals(var14.getRefersTo()) && !"=".equals(var14.getRefersTo())) {
                  try {
                     zabd var42 = this.e.getWorksheets().x().a(var14, var2);
                     Object var46 = this.b(var42, var2);
                     return var46;
                  } catch (Exception var23) {
                     if (var1.c() != null && "ISERROR".equals(var1.c().b())) {
                        return zst.c;
                     }

                     throw (CellsException)var23;
                  }
               }

               return zst.c;
            }
         }
      case 58:
      case 90:
      case 122:
         var9 = com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff';
         if (var9 >= this.e.getWorksheets().q().getCount()) {
            return zst.g;
         } else {
            var16 = this.e.getWorksheets().q().b(var9);
            var17 = var16.a & '\uffff';
            var10 = var16.b & '\uffff';
            if (this.c) {
               if (var2 != null) {
                  var3 = zcew.a(var1.f(), 3, var2.getRow(), var1.f()[8]);
                  var6 = zcew.b(var1.f(), 7, var2.getColumn(), var1.f()[8]);
               } else if (this.b != null) {
                  var3 = zcew.a(var1.f(), 3, this.b.getRow(), var1.f()[8]);
                  var6 = zcew.b(var1.f(), 7, this.b.getColumn(), var1.f()[8]);
               } else {
                  var3 = com.aspose.cells.b.a.zc.a(var1.f(), 3);
                  var6 = zcew.a(var1.f(), 7);
               }
            } else {
               var3 = com.aspose.cells.b.a.zc.a(var1.f(), 3);
               var6 = zcew.a(var1.f(), 7);
            }

            if (var17 != this.e.getWorksheets().u()) {
               return zup.a(this.e.getWorksheets(), var17, var10, var3, var6);
            } else {
               if (var10 != -1 && var10 < this.e.getWorksheets().getCount()) {
                  if (var16.b != var16.c && var1.c() != null && "SUM".equals(var1.c().b())) {
                     var18 = new Object[][]{new Object[(var16.c & '\uffff') - (var16.b & '\uffff') + 1]};

                     for(var19 = var16.b & '\uffff'; var19 <= (var16.c & '\uffff'); ++var19) {
                        var18[0][var19 - (var16.b & '\uffff')] = this.a(var1, this.e.getWorksheets().get(var19), var2, var3, var6);
                     }

                     return var18;
                  }

                  return this.a(var1, this.e.getWorksheets().get(var10), var2, var3, var6);
               }

               return zst.g;
            }
         }
      case 59:
      case 91:
      case 123:
         var9 = com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff';
         if (var9 >= this.e.getWorksheets().q().getCount()) {
            return zst.g;
         } else {
            var16 = this.e.getWorksheets().q().b(var9);
            var17 = var16.a & '\uffff';
            var10 = var16.b & '\uffff';
            var24 = com.aspose.cells.b.a.zc.a(var1.f(), 3);
            var26 = com.aspose.cells.b.a.zc.a(var1.f(), 7);
            var28 = zcew.a(var1.f(), 11);
            var30 = zcew.a(var1.f(), 13);
            if (var17 != this.e.getWorksheets().u()) {
               return zup.a(var1, var17, this.e.getWorksheets(), var10, var24, var28, var26, var30, this.l, (String)null);
            } else if (var10 >= 0 && var10 < this.e.getWorksheets().getCount()) {
               if (var16.b != var16.c && var1.c() != null && "SUM".equals(var1.c().b())) {
                  var18 = new Object[][]{new Object[(var16.c & '\uffff') - (var16.b & '\uffff') + 1]};

                  for(var19 = var16.b & '\uffff'; var19 <= (var16.c & '\uffff'); ++var19) {
                     var18[0][var19 - (var16.b & '\uffff')] = this.a(var1.c(), this.e.getWorksheets().get(var19), var2, var24, var26, var28, var30);
                  }

                  return var18;
               } else {
                  return this.b(var1, this.e.getWorksheets().get(var10), var2, var24, var26, var28, var30, false);
               }
            } else {
               return zst.g;
            }
         }
      }
   }

   private Object v(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      return zano.a(var3);
   }

   private Object w(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      if (var3 == null) {
         return zst.i;
      } else if (var3 instanceof zst) {
         return var3;
      } else {
         String var4 = com.aspose.cells.b.a.zr.a(var3);
         return var4.length() == 0 ? zst.i : (double)var4.charAt(0);
      }
   }

   private Object x(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      return zjw.a(var3);
   }

   private Object y(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      if (var3 == null) {
         return zst.i;
      } else {
         Object var4 = this.b((zabd)var1.d().get(1), var2);
         if (!(var4 instanceof zft)) {
            return zst.i;
         } else {
            Object[] var5 = new Object[var1.d().size() - 2];

            for(int var6 = 2; var6 < var1.d().size(); ++var6) {
               Object var7 = this.b((zabd)var1.d().get(var6), var2);
               if (var7 == null) {
                  return zst.i;
               }

               if (var7 instanceof zst) {
                  return var7;
               }

               var5[var6 - 2] = var7;
            }

            zft var8 = (zft)var4;
            return var8.c.getPivotTables().a(var8.d.StartRow, var8.d.StartColumn, com.aspose.cells.b.a.zr.a(var3), var5);
         }
      }
   }

   private Object z(zabd var1, Cell var2) {
      switch(u.a(var1.b())) {
      case 0:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
         return this.a(var1, var2, false);
      case 1:
         return this.a(var1, var2, true);
      case 12:
         return this.a(var1, var2, 2);
      case 13:
         return this.a(var1, var2, 2);
      case 14:
         return this.b(var1, var2, 2);
      case 15:
         return this.b(var1, var2, 1);
      case 16:
         return this.b(var1, var2, 2);
      case 17:
      case 18:
      case 19:
         return this.b(var1, var2, 2);
      case 20:
         return this.b(var1, var2, 1);
      case 21:
         return this.b(var1, var2, 1);
      case 22:
         return this.bz(var1, var2);
      case 23:
      case 30:
         return this.bx(var1, var2);
      case 24:
      case 25:
         return this.bw(var1, var2);
      case 26:
         return this.bv(var1, var2);
      case 27:
         return this.bs(var1, var2);
      case 28:
         return this.bt(var1, var2);
      case 29:
         return this.am(var1, var2);
      case 31:
         return this.az(var1, var2);
      case 32:
         return this.ab(var1, var2);
      case 33:
      case 71:
      case 72:
      default:
         return this.A(var1, var2);
      case 34:
         return this.al(var1, var2);
      case 35:
         return this.y(var1, var2);
      case 36:
         return this.ax(var1, var2);
      case 37:
         return this.aD(var1, var2);
      case 38:
         return this.bD(var1, var2);
      case 39:
         return this.ac(var1, var2);
      case 40:
         return this.an(var1, var2);
      case 41:
         return zcff.a(this, var1, var2);
      case 42:
         return zcez.a(this, var1, var2);
      case 43:
         return this.aj(var1, var2);
      case 44:
         return this.bh(var1, var2);
      case 45:
         return this.bh(var1, var2);
      case 46:
      case 88:
         return this.bh(var1, var2);
      case 47:
      case 48:
         return this.g(var1, var2, 0);
      case 49:
      case 50:
         return this.g(var1, var2, 2);
      case 51:
      case 52:
         return this.g(var1, var2, 1);
      case 53:
         return this.bL(var1, var2);
      case 54:
         boolean var3 = var2 != null && !var2.y();
         if (var3) {
            var2.g().b(true);
         }

         Object var4 = this.ba(var1, var2);
         if (var3) {
            var2.g().b(false);
         }

         return var4;
      case 55:
         return this.aT(var1, var2);
      case 56:
         return this.aI(var1, var2);
      case 57:
         return this.aS(var1, var2);
      case 58:
         return this.aK(var1, var2);
      case 59:
         return this.aO(var1, var2);
      case 60:
         return this.bb(var1, var2);
      case 61:
         return this.aW(var1, var2);
      case 62:
         return this.j(var1, var2, true);
      case 63:
      case 64:
         return this.bE(var1, var2);
      case 65:
         return this.ae(var1, var2);
      case 66:
         return this.ag(var1, var2);
      case 67:
         return this.ad(var1, var2);
      case 68:
         return this.af(var1, var2);
      case 69:
         return this.aQ(var1, var2);
      case 70:
         return this.bg(var1, var2);
      case 73:
         return this.cg(var1, var2);
      case 74:
      case 75:
         return this.bR(var1, var2);
      case 76:
         return this.ch(var1, var2);
      case 77:
         return this.bH(var1, var2);
      case 78:
         return this.bX(var1, var2);
      case 79:
      case 80:
         return this.bT(var1, var2);
      case 81:
         return this.aw(var1, var2);
      case 82:
         return this.bI(var1, var2);
      case 83:
         return this.bW(var1, var2);
      case 84:
         return this.bZ(var1, var2);
      case 85:
         return this.ca(var1, var2);
      case 86:
         return this.bY(var1, var2);
      case 87:
         return this.a(var1, var2, false, false, false, false);
      case 89:
      case 90:
      case 91:
      case 92:
      case 93:
      case 94:
      case 95:
      case 96:
      case 97:
      case 98:
      case 99:
      case 100:
      case 101:
      case 102:
      case 103:
      case 104:
      case 105:
      case 106:
      case 107:
      case 108:
         return this.bT(var1, var2);
      case 109:
         return this.R(var1, var2);
      case 110:
         return this.S(var1, var2);
      case 111:
         return this.P(var1, var2);
      case 112:
         return this.bC(var1, var2);
      case 113:
         return this.bA(var1, var2);
      case 114:
         return this.V(var1, var2);
      case 115:
         return this.W(var1, var2);
      case 116:
         return this.f(var1, var2, 2);
      case 117:
         return this.bB(var1, var2);
      case 118:
         return this.x(var1, var2);
      case 119:
         return this.w(var1, var2);
      case 120:
         return this.bT(var1, var2);
      case 121:
         return this.bP(var1, var2);
      case 122:
         return this.bT(var1, var2);
      case 123:
         return this.bQ(var1, var2);
      case 124:
         return this.aJ(var1, var2);
      case 125:
         return this.bF(var1, var2);
      case 126:
         return this.bK(var1, var2);
      case 127:
         return this.bu(var1, var2);
      case 128:
      case 129:
      case 130:
      case 131:
      case 132:
      case 133:
      case 134:
      case 135:
         return this.bT(var1, var2);
      case 136:
         return this.bT(var1, var2);
      case 137:
         return this.aA(var1, var2);
      case 138:
         return this.aC(var1, var2);
      case 139:
         return this.c(var1, var2, 0);
      case 140:
      case 141:
         return this.bT(var1, var2);
      case 142:
         return this.aE(var1, var2);
      case 143:
         return this.bO(var1, var2);
      case 144:
      case 145:
         return this.bT(var1, var2);
      case 146:
         return this.a(var1, var2, true, true, true, false);
      case 147:
         return this.p(var1, var2);
      case 148:
         return this.bT(var1, var2);
      case 149:
      case 150:
         return this.aF(var1, var2);
      case 151:
      case 152:
         return this.bT(var1, var2);
      case 153:
         return this.bT(var1, var2);
      case 154:
         return this.a(var1, var2, var1.b());
      case 155:
         return this.bT(var1, var2);
      case 156:
         return this.h(var1, var2);
      case 157:
      case 158:
         return this.bT(var1, var2);
      case 159:
         return this.ax(var1, var2);
      case 160:
         return this.i(var1, var2);
      case 161:
         return this.cc(var1, var2);
      case 162:
         return this.Q(var1, var2);
      case 163:
         return this.bT(var1, var2);
      case 164:
         return this.bT(var1, var2);
      case 165:
         return this.bT(var1, var2);
      case 166:
         return false;
      case 167:
         return this.X(var1, var2);
      case 168:
         return this.e(var1, var2, false);
      case 169:
         return this.e(var1, var2, true);
      case 170:
         return this.Y(var1, var2);
      case 171:
      case 172:
         return this.bT(var1, var2);
      case 173:
         return this.K(var1, var2);
      case 174:
         return this.L(var1, var2);
      case 175:
         return this.bd(var1, var2);
      case 176:
         return this.M(var1, var2);
      case 177:
         return this.o(var1, var2);
      case 178:
         return this.N(var1, var2);
      case 179:
         return this.O(var1, var2);
      case 180:
         return this.bT(var1, var2);
      case 181:
         return this.e(var1, var2, var1.d().size());
      case 182:
         return this.bc(var1, var2);
      case 183:
         return this.bT(var1, var2);
      case 184:
         return this.aZ(var1, var2);
      case 185:
         return this.a(var1, var2, true, true, true, false);
      case 186:
      case 187:
      case 188:
         return this.i(var1, var2, 1);
      case 189:
         return this.ak(var1, var2);
      case 190:
         return this.bT(var1, var2);
      case 191:
      case 192:
      case 193:
      case 194:
      case 195:
         return this.i(var1, var2, 1);
      case 196:
         return this.i(var1, var2, 2);
      case 197:
      case 198:
      case 199:
      case 200:
      case 201:
      case 202:
      case 203:
      case 204:
         return this.i(var1, var2, 1);
      case 205:
         return this.i(var1, var2, 2);
      case 206:
      case 207:
         return this.h(var1, var2, 255);
      case 208:
         return this.ao(var1, var2);
      case 209:
         return this.ap(var1, var2);
      case 210:
         return this.bT(var1, var2);
      case 211:
         return this.aq(var1, var2);
      case 212:
         return this.ar(var1, var2);
      case 213:
         return this.at(var1, var2);
      case 214:
         return this.ax(var1, var2);
      case 215:
         return this.as(var1, var2);
      case 216:
      case 217:
      case 218:
         return this.i(var1, var2, false);
      case 219:
      case 220:
         return this.i(var1, var2, true);
      case 221:
         return this.au(var1, var2);
      case 222:
      case 223:
         return this.ax(var1, var2);
      case 224:
         return this.av(var1, var2);
      case 225:
         return this.ax(var1, var2);
      case 226:
         return this.bT(var1, var2);
      case 227:
         return this.ay(var1, var2);
      case 228:
         return this.ax(var1, var2);
      case 229:
         return this.a(var1, var2, true, true, true, false);
      case 230:
         return this.j(var1, var2, false);
      case 231:
         return this.e(var1, var2, var1.d().size());
      case 232:
         return this.a(var1, var2, false, false);
      case 233:
         return this.a(var1, var2, false, true);
      case 234:
         return this.c(var1, var2, false);
      case 235:
         return this.c(var1, var2, true);
      case 236:
         return this.cd(var1, var2);
      case 237:
         return this.bT(var1, var2);
      case 238:
         return this.ce(var1, var2);
      case 239:
      case 240:
         return this.bT(var1, var2);
      case 241:
         return this.b(var1, var2, false);
      case 242:
         return this.f(var1, var2, 1);
      case 243:
         return this.bT(var1, var2);
      case 244:
         return this.d(var1, var2, false);
      case 245:
         return this.d(var1, var2, true);
      case 246:
         return this.f(var1, var2, 1);
      case 247:
         return this.f(var1, var2, 2);
      case 248:
         return this.ah(var1, var2);
      case 249:
         return this.v(var1, var2);
      case 250:
         return this.c(var1, var2, 1);
      case 251:
         return this.e(var1, var2, var1.d().size());
      case 252:
         return this.ai(var1, var2);
      case 253:
         return this.a(var1, var2, true, true, true, false);
      case 254:
         return this.ax(var1, var2);
      case 255:
         return zst.c;
      case 256:
         return this.bT(var1, var2);
      case 257:
         return this.I(var1, var2);
      case 258:
         return this.I(var1, var2);
      case 259:
         return this.bi(var1, var2);
      case 260:
         return DateTime.getNow();
      case 261:
         return this.bT(var1, var2);
      case 262:
         return this.bj(var1, var2);
      case 263:
         return this.bn(var1, var2);
      case 264:
         return this.bl(var1, var2);
      case 265:
         return this.bm(var1, var2);
      case 266:
         return this.br(var1, var2);
      case 267:
         return this.bo(var1, var2);
      case 268:
      case 269:
      case 270:
      case 271:
         return this.bT(var1, var2);
      case 272:
      case 273:
      case 274:
      case 275:
         return this.bT(var1, var2);
      case 276:
         return this.e(var1, var2, 1);
      case 277:
         return this.aL(var1, var2);
      case 278:
         return this.bT(var1, var2);
      case 279:
         return 3.141592653589793D;
      case 280:
         return this.bk(var1, var2);
      case 281:
         return this.k(var1, var2);
      case 282:
      case 283:
      case 284:
         return this.bT(var1, var2);
      case 285:
         return this.aU(var1, var2);
      case 286:
         return this.aN(var1, var2);
      case 287:
         return this.Z(var1, var2);
      case 288:
         return this.bq(var1, var2);
      case 289:
         return this.aM(var1, var2);
      case 290:
         return this.bp(var1, var2);
      case 291:
         return this.bT(var1, var2);
      case 292:
         return this.aP(var1, var2);
      case 293:
         return this.bT(var1, var2);
      case 294:
         if (this.i == null) {
            this.i = new Random();
         }

         return this.i.nextDouble();
      case 295:
         return this.bT(var1, var2);
      case 296:
         return this.aR(var1, var2);
      case 297:
         return this.bT(var1, var2);
      case 298:
         return this.g(var1, var2, false);
      case 299:
         return this.g(var1, var2, true);
      case 300:
         return this.aa(var1, var2);
      case 301:
         return this.a(var1, var2, true, false);
      case 302:
         return this.a(var1, var2, true, true);
      case 303:
         return this.bT(var1, var2);
      case 304:
         return this.d(var1, var2, 0);
      case 305:
         return this.d(var1, var2, -1);
      case 306:
         return this.d(var1, var2, 1);
      case 307:
         return this.f(var1, var2, false);
      case 308:
         return this.f(var1, var2, true);
      case 309:
         return this.n(var1, var2);
      case 310:
         return this.cf(var1, var2);
      case 311:
         return this.bG(var1, var2);
      case 312:
         return this.bJ(var1, var2);
      case 313:
         return this.a(var1, var2, true, true, true, false);
      case 314:
         return this.l(var1, var2);
      case 315:
         return this.cb(var1, var2);
      case 316:
         return this.bT(var1, var2);
      case 317:
         return this.bT(var1, var2);
      case 318:
      case 319:
      case 320:
         return this.be(var1, var2);
      case 321:
         return this.a(var1, var2, false, false, true, false);
      case 322:
      case 323:
      case 324:
         return this.bf(var1, var2);
      case 325:
         return this.a(var1, var2, false, false, true, false);
      case 326:
         return this.bM(var1, var2);
      case 327:
         return this.a(var1, var2, true, true, true, false);
      case 328:
         return this.m(var1, var2);
      case 329:
         return this.bS(var1, var2);
      case 330:
      case 331:
      case 332:
         return this.bT(var1, var2);
      case 333:
         return this.bU(var1, var2);
      case 334:
         return this.bV(var1, var2);
      case 335:
         return this.T(var1, var2);
      case 336:
         return this.B(var1, var2);
      case 337:
         return this.q(var1, var2);
      case 338:
         return this.aB(var1, var2);
      case 339:
         return this.U(var1, var2);
      case 340:
         return this.aX(var1, var2);
      case 341:
         return this.s(var1, var2);
      case 342:
         return this.aY(var1, var2);
      case 343:
         return true;
      case 344:
         return this.r(var1, var2);
      case 345:
         return this.aV(var1, var2);
      case 346:
         return DateTime.g();
      case 347:
         return this.c(var1, var2, 3);
      case 348:
         return this.c(var1, var2, 4);
      case 349:
         return this.c(var1, var2, 5);
      case 350:
         return this.b(var1, var2, true);
      case 351:
         return this.t(var1, var2);
      case 352:
         return this.a(var1, var2, true, true, true, false);
      case 353:
         return this.a(var1, var2, false, false, true, false);
      case 354:
         return this.a(var1, var2, true, true, true, false);
      case 355:
         return this.a(var1, var2, false, false, true, false);
      case 356:
         return this.bN(var1, var2);
      case 357:
         return this.F(var1, var2);
      case 358:
         return this.J(var1, var2);
      case 359:
         return this.a(var1, var2, "WORKDAY");
      case 360:
         return this.a(var1, var2, "WORKDAY.INTL");
      case 361:
      case 362:
         return this.C(var1, var2);
      case 363:
      case 364:
         return this.D(var1, var2);
      case 365:
         return this.c(var1, var2, 2);
      case 366:
      case 367:
      case 368:
         return this.bT(var1, var2);
      case 369:
      case 370:
         return this.E(var1, var2);
      case 371:
         return this.bT(var1, var2);
      }
   }

   private Object A(zabd var1, Cell var2) {
      if (this.n == null) {
         return zst.d;
      } else {
         ArrayList var3 = new ArrayList();
         ArrayList var4 = new ArrayList();
         com.aspose.cells.b.a.a.ze.a(var4, (Object)this.e);
         com.aspose.cells.b.a.a.ze.a(var4, (Object)var2.d.h());
         com.aspose.cells.b.a.a.ze.a(var4, (Object)var2);
         ArrayList var5 = new ArrayList();
         ReferredAreaCollection var6 = new ReferredAreaCollection(false);
         this.a(var1, var2, var3, var5, var6);
         com.aspose.cells.b.a.a.ze.a(var4, (Object)var5);
         com.aspose.cells.b.a.a.ze.a(var4, (Object)var6);
         Object var7 = this.n.calculateCustomFunction(var1.b(), var3, var4);
         if (var7 != null) {
            if (var7 instanceof String) {
               boolean var8 = false;
               boolean[] var9 = new boolean[]{var8};
               zst var10 = zsk.a((String)var7, var9);
               var8 = var9[0];
               if (var8) {
                  return var10;
               }
            } else if (var7 instanceof Integer) {
               var7 = (double)(Integer)var7;
            } else if (var7 instanceof Object[]) {
               if (!(var7 instanceof Object[][])) {
                  var7 = new Object[]{var7};
               }
            } else if (var7 instanceof Range) {
               Range var11 = (Range)var7;
               CellArea var12 = var11.a();
               var7 = this.a(var1, var11.getWorksheet(), var2, var12.StartRow, var12.EndRow, var12.StartColumn, var12.EndColumn, var2 != null && var2.y(), true);
            }
         }

         return var7;
      }
   }

   private void a(zabd var1, Cell var2, ArrayList var3, ArrayList var4, ReferredAreaCollection var5) {
      if (var1.d() != null) {
         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var8 = this.b(var7, var2);
            if (var8 != null && var8 instanceof zst) {
               var8 = zsk.a((zst)var8);
            }

            com.aspose.cells.b.a.a.ze.a(var3, var8);
            StringBuilder var9 = new StringBuilder();
            this.e.getWorksheets().b().a(var9, var7, var2.getRow(), var2.getColumn(), false);
            com.aspose.cells.b.a.a.ze.a(var4, (Object)com.aspose.cells.b.a.zr.a(var9));
            if (var7.f() != null) {
               int var10 = var5.getCount();
               zyo.a(var7.f(), 0, var7.f().length - 1, var2.getRow(), var2.getColumn(), this.e.getWorksheets(), var2.d, var5, false, (String)null, var2.d.h().getName());
               if (var5.getCount() == var10) {
                  var5.a((ReferredArea)null);
               }
            } else {
               var5.a((ReferredArea)null);
            }
         }
      }

   }

   private Object B(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         if (var4 == null) {
            var4 = 0.0D;
         } else if (var4 instanceof zst) {
            return var4;
         }

         boolean var5 = true;
         zati var7;
         switch(zamo.a(var4.getClass())) {
         case 3:
            return (Boolean)var4 ? "TRUE" : "FALSE";
         case 14:
            break;
         case 16:
            var5 = false;
            break;
         case 18:
            String var6 = (String)var4;
            var7 = zyc.a(var6, this.e.getSettings().e());
            if (var7 == null) {
               return var6;
            }

            var4 = var7.d();
            var5 = var7.a() != 1;
            break;
         default:
            return com.aspose.cells.b.a.zr.a(var4);
         }

         var3 = (zabd)var1.d().get(1);
         Object var8 = this.b(var3, var2);
         if (var8 instanceof zst) {
            return var8;
         } else {
            var7 = null;
            String var9;
            switch(zamo.a(var8.getClass())) {
            case 3:
               return zst.i;
            case 14:
               var9 = com.aspose.cells.b.a.zr.a(var8);
               break;
            case 18:
               var9 = (String)var8;
               break;
            default:
               return com.aspose.cells.b.a.zr.a(var8);
            }

            if (com.aspose.cells.b.a.g.a.ze.b(var9, zgb.a, 66) && var5) {
               switch(u.a(var9)) {
               case 372:
               case 373:
                  return (double)((int)((Double)var4 * 24.0D));
               default:
                  if ((Double)var4 < 0.0D) {
                     return zst.i;
                  }

                  var4 = CellsHelper.getDateTimeFromDouble((Double)var4, this.e.getSettings().getDate1904());
                  var5 = false;
               }
            }

            if (var5 || var4 instanceof DateTime) {
               var9 = zyc.a(var9, this.e.getSettings().e(), true);
            }

            return zyc.a(var4, var9, this.e.getSettings().e()).h();
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object C(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      Object var4 = this.b((zabd)var1.d().get(1), var2);
      double var5 = 0.1D;
      if (var1.d().size() == 3) {
         Object var7 = this.b((zabd)var1.d().get(2), var2);
         if (var7 != null) {
            switch(zamo.a(var7.getClass())) {
            case 14:
               var5 = (Double)var7;
            }
         }
      }

      if (var3 != null && var4 != null) {
         if (!com.aspose.cells.a.c.zc.a(var3)) {
            if (var3 instanceof zst) {
               return var3;
            } else {
               return com.aspose.cells.a.c.zc.a(var4) ? zst.f : zst.c;
            }
         } else if (!com.aspose.cells.a.c.zc.a(var4)) {
            return var4 instanceof zst ? var4 : zst.f;
         } else {
            Object[] var9 = (Object[])((Object[])var3);
            int var10 = var9.length;
            Object[] var11 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var9, 0));
            int var12 = var11.length;
            double[] var18 = new double[var10 * var12];

            for(int var13 = 0; var13 < var10; ++var13) {
               var11 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var9, var13));

               for(int var14 = 0; var14 < var12; ++var14) {
                  Object var15 = com.aspose.cells.b.a.za.a(var11, var14);
                  if (var15 != null) {
                     switch(zamo.a(var15.getClass())) {
                     case 14:
                        var18[var13 * var12 + var14] = (Double)var15;
                        break;
                     case 16:
                        var18[var13 * var12 + var14] = CellsHelper.getDoubleFromDateTime((DateTime)var15, this.e.getSettings().getDate1904());
                        break;
                     default:
                        return zst.i;
                     }
                  }
               }
            }

            Object[] var19 = (Object[])((Object[])var4);
            if (var19.length != var10) {
               return zst.f;
            } else {
               Object[] var20 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var19, 0));
               if (var20.length != var12) {
                  return zst.f;
               } else {
                  double[] var8 = new double[var18.length];

                  for(int var21 = 0; var21 < var10; ++var21) {
                     var20 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var19, var21));

                     for(int var16 = 0; var16 < var12; ++var16) {
                        Object var17 = com.aspose.cells.b.a.za.a(var20, var16);
                        var17 = zyn.e(var17, this.e.getSettings().getDate1904());
                        if (var17 instanceof zst) {
                           return zst.i;
                        }

                        var8[var21 * var12 + var16] = (Double)var17;
                     }
                  }

                  zbvt var22 = new zbvt();
                  return var22.a(var18, var8, var5);
               }
            }
         }
      } else {
         return zst.c;
      }
   }

   private Object D(zabd var1, Cell var2) {
      Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var5 instanceof Double) {
         double var3 = (Double)var5;
         Object var6 = this.b((zabd)var1.d().get(1), var2);
         if (var6 != null && var6 instanceof zst) {
            return var6;
         } else {
            Object var7 = this.b((zabd)var1.d().get(2), var2);
            if (var7 != null && var7 instanceof zst) {
               return var7;
            } else {
               ArrayList var8 = new ArrayList();
               ArrayList var9 = new ArrayList();
               if (!com.aspose.cells.a.c.zc.a(var6)) {
                  return zst.f;
               } else {
                  Object[] var10 = (Object[])((Object[])var6);
                  Object[] var13;
                  if (com.aspose.cells.a.c.zc.a(var7)) {
                     Object[] var11 = (Object[])((Object[])var7);
                     if (var10.length != var11.length) {
                        return zst.f;
                     }

                     Object[] var12 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var10, 0));
                     var13 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var11, 0));
                     if (var12.length != var13.length) {
                        return zst.i;
                     }

                     for(int var14 = 0; var14 < var10.length; ++var14) {
                        var12 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var10, var14));
                        var13 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var11, var14));

                        for(int var15 = 0; var15 < var12.length; ++var15) {
                           Object var16 = com.aspose.cells.b.a.za.a(var12, var15);
                           if (var16 == null) {
                              return zst.i;
                           }

                           var16 = zyn.e(var16, this.e.getSettings().getDate1904());
                           if (!(var16 instanceof Double)) {
                              return var16;
                           }

                           com.aspose.cells.b.a.a.ze.a(var8, var16);
                           Object var17 = com.aspose.cells.b.a.za.a(var13, var15);
                           if (var17 == null) {
                              return zst.i;
                           }

                           var17 = zyn.e(var17, this.e.getSettings().getDate1904());
                           if (!(var17 instanceof Double)) {
                              return var17;
                           }

                           com.aspose.cells.b.a.a.ze.a(var9, (Object)Math.floor((Double)var17));
                        }
                     }
                  } else {
                     Object var18 = zyn.e(var7, this.e.getSettings().getDate1904());
                     if (!(var18 instanceof Double)) {
                        return var18;
                     }

                     com.aspose.cells.b.a.a.ze.a(var9, var18);
                     if (var10.length != 1) {
                        return zst.f;
                     }

                     var13 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var10, 0));
                     if (var13.length == 1) {
                        Object var19 = zyn.e(com.aspose.cells.b.a.za.a((Object[])var13, 0), this.e.getSettings().getDate1904());
                        if (!(var19 instanceof Double)) {
                           return var19;
                        }

                        com.aspose.cells.b.a.a.ze.a(var8, var19);
                     }
                  }

                  return zaor.a(var3, var8, var9);
               }
            }
         }
      } else {
         return var5;
      }
   }

   private Object E(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 2 && var1.d().size() <= 3) {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         double var5 = 0.0D;
         if (var4 instanceof Double) {
            var5 = Math.floor((Double)var4);
            var3 = (zabd)var1.d().get(1);
            Object var7 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
            double var8 = 0.0D;
            if (var7 instanceof Double) {
               var8 = Math.floor((Double)var7);
               int var10 = 0;
               if (var1.d().size() == 3) {
                  var3 = (zabd)var1.d().get(2);
                  Object var11 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
                  if (!(var11 instanceof Double)) {
                     return var11;
                  }

                  var10 = (int)com.aspose.cells.a.c.zi.b(var11);
               }

               switch(var10) {
               case 0:
                  if (var5 < var8) {
                     return zbtm.a(var5, var8, false, this.e.getSettings().getDate1904()) / 360.0D;
                  } else {
                     if (var5 > var8) {
                        return zbtm.a(var8, var5, false, this.e.getSettings().getDate1904()) / 360.0D;
                     }

                     return 0.0D;
                  }
               case 1:
                  if (var5 < var8) {
                     return (var8 - var5) / zbtm.a(var5, var8, this.e.getSettings().getDate1904());
                  } else {
                     if (var5 > var8) {
                        return (var5 - var8) / zbtm.a(var8, var5, this.e.getSettings().getDate1904());
                     }

                     return 0.0D;
                  }
               case 2:
                  return Math.abs(var5 - var8) / 360.0D;
               case 3:
                  return Math.abs(var5 - var8) / 365.0D;
               case 4:
                  if (var5 < var8) {
                     return zbtm.a(var5, var8, true, this.e.getSettings().getDate1904()) / 360.0D;
                  } else {
                     if (var5 > var8) {
                        return zbtm.a(var8, var5, true, this.e.getSettings().getDate1904()) / 360.0D;
                     }

                     return 0.0D;
                  }
               default:
                  return zst.f;
               }
            } else {
               return var7;
            }
         } else {
            return var4;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object F(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 1 && var1.d().size() <= 2) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         var3 = zyn.a(this.e, var3, true, this.e.getSettings());
         if (var3 instanceof zst) {
            return var3;
         } else {
            DateTime var4 = CellsHelper.getDateTimeFromDouble((Double)var3, this.e.getSettings().getDate1904());
            int var5 = var4.getDayOfWeek();
            int var6 = 1;
            if (var1.d().size() > 1) {
               var3 = this.b((zabd)var1.d().get(1), var2);
               var3 = zyn.a(this.e, var3, true, this.e.getSettings());
               if (var3 instanceof zst) {
                  return var3;
               }

               var6 = (int)com.aspose.cells.a.c.zi.b(var3);
            }

            switch(var6) {
            case 2:
               if (var5 == 0) {
                  return 7.0D;
               }

               return (double)var5;
            case 3:
               --var5;
               if (var5 < 0) {
                  return 6;
               }

               return var5;
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            default:
               return (double)(var5 + 1);
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
               var5 -= var6 % 10 - 1;
               if (var5 <= 0) {
                  var5 += 7;
               }

               return var5;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object G(zabd var1, Cell var2) {
      Object var3 = this.b(var1, var2);
      if (var3 == null) {
         return CellsHelper.getDateTimeFromDouble(0.0D, this.e.getSettings().getDate1904());
      } else if (var3 instanceof zst) {
         return var3;
      } else {
         var3 = zyn.a(this.e, var3, false, this.e.getSettings());
         return var3 instanceof zst ? var3 : CellsHelper.getDateTimeFromDouble((Double)var3, this.e.getSettings().getDate1904());
      }
   }

   private Object H(zabd var1, Cell var2) {
      Object var3 = this.b(var1, var2);
      if (var3 == null) {
         return 0.0D;
      } else {
         return var3 instanceof zst ? var3 : zyn.a(this.e, var3, false, this.e.getSettings());
      }
   }

   private Object a(zabd var1, Cell var2, String var3) {
      Object var4 = this.G((zabd)var1.d().get(0), var2);
      if (var4 instanceof zst) {
         return var4;
      } else {
         DateTime var5 = (DateTime)var4;
         Object var6 = null;
         boolean var8;
         int var12;
         switch(u.a(var3)) {
         case 154:
            boolean var7 = false;
            var6 = this.H((zabd)var1.d().get(1), var2);
            if (var6 instanceof zst) {
               return var6;
            }

            int var11 = (int)com.aspose.cells.a.c.zi.b(var6);
            return var5.addMonths(var11);
         case 359:
            var8 = false;
            var6 = this.H((zabd)var1.d().get(1), var2);
            if (var6 instanceof zst) {
               return var6;
            } else {
               var12 = (int)com.aspose.cells.a.c.zi.b(var6);
               DateTime[] var13 = null;
               if (var1.d().size() >= 3) {
                  var6 = this.b((zabd)var1.d().get(2), var2);
                  var6 = zyn.a(var6, var2, this.e.getSettings().getDate1904());
                  if (var6 instanceof zst) {
                     return var6;
                  }

                  var13 = (DateTime[])((DateTime[])var6);
               }

               return zqq.a(var5, var12, var13);
            }
         case 360:
            var8 = false;
            var6 = this.H((zabd)var1.d().get(1), var2);
            if (var6 instanceof zst) {
               return var6;
            } else {
               var12 = (int)com.aspose.cells.a.c.zi.b(var6);
               Object var9 = 1;
               if (var1.d().size() >= 3) {
                  var6 = this.b((zabd)var1.d().get(2), var2);
                  if (var6 instanceof Double) {
                     var9 = com.aspose.cells.a.c.zi.a((Double)var6);
                  } else {
                     var9 = com.aspose.cells.b.a.zr.a(var6);
                  }
               }

               DateTime[] var10 = null;
               if (var1.d().size() >= 4) {
                  var6 = this.b((zabd)var1.d().get(3), var2);
                  var6 = zyn.a(var6, var2, this.e.getSettings().getDate1904());
                  if (var6 instanceof zst) {
                     return var6;
                  }

                  var10 = (DateTime[])((DateTime[])var6);
               }

               return zqq.a(var5, var12, var9, var10);
            }
         default:
            return null;
         }
      }
   }

   private Object I(zabd var1, Cell var2) {
      Object var3 = this.G((zabd)var1.d().get(0), var2);
      if (var3 instanceof zst) {
         return var3;
      } else {
         Object var4 = this.G((zabd)var1.d().get(1), var2);
         if (var4 instanceof zst) {
            return var4;
         } else {
            DateTime var5 = (DateTime)var3;
            DateTime var6 = (DateTime)var4;
            Object var7 = null;
            switch(u.a(var1.b())) {
            case 257:
               DateTime[] var10 = null;
               if (var1.d().size() >= 3) {
                  var7 = this.b((zabd)var1.d().get(2), var2);
                  var7 = zyn.a(var7, var2, this.e.getSettings().getDate1904());
                  if (var7 instanceof zst) {
                     return var7;
                  }

                  var10 = (DateTime[])((DateTime[])var7);
               }

               return zqq.a(var5, var6, var10, this.e.getSettings().getDate1904());
            case 258:
               Object var8 = 1;
               if (var1.d().size() >= 3) {
                  var7 = this.b((zabd)var1.d().get(2), var2);
                  if (var7 instanceof Double) {
                     var8 = com.aspose.cells.a.c.zi.a((Double)var7);
                  } else {
                     var8 = com.aspose.cells.b.a.zr.a(var7);
                  }
               }

               DateTime[] var9 = null;
               if (var1.d().size() >= 4) {
                  var7 = this.b((zabd)var1.d().get(3), var2);
                  var7 = zyn.a(var7, var2, this.e.getSettings().getDate1904());
                  if (var7 instanceof zst) {
                     return var7;
                  }

                  var9 = (DateTime[])((DateTime[])var7);
               }

               return zqq.a(var5, var6, var8, var9, this.e.getSettings().getDate1904());
            default:
               return null;
            }
         }
      }
   }

   private Object J(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 1 && var1.d().size() <= 2) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         var3 = zyn.a(this.e, var3, true, this.e.getSettings());
         if (var3 instanceof zst) {
            return var3;
         } else {
            DateTime var4 = CellsHelper.getDateTimeFromDouble((Double)var3, this.e.getSettings().getDate1904());
            int var5 = 1;
            if (var1.d().size() > 1) {
               var3 = this.b((zabd)var1.d().get(1), var2);
               var3 = zyn.a(this.e, var3, true, this.e.getSettings());
               if (var3 instanceof zst) {
                  return var3;
               }

               var5 = (int)com.aspose.cells.a.c.zi.b(var3);
            }

            return zqq.b(var4, var5);
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object c(zabd var1, Cell var2, int var3) {
      if (var1.d() != null && var1.d().size() == 1) {
         zabd var4 = (zabd)var1.d().get(0);
         Object var5 = this.b(var4, var2);
         if (var5 != null && com.aspose.cells.a.c.zc.a(var5)) {
            Object[] var6 = (Object[])((Object[])var5);
            Object var7 = com.aspose.cells.b.a.za.a((Object[])var6, 0);
            Object[][] var8 = new Object[var6.length][];
            int var9 = 1;
            if (com.aspose.cells.a.c.zc.a(var7)) {
               Object[] var10 = (Object[])((Object[])var7);
               var9 = var10.length;
            }

            for(int var13 = 0; var13 < var6.length; ++var13) {
               var8[var13] = new Object[var9];
               var7 = com.aspose.cells.b.a.za.a(var6, var13);
               if (var7 != null) {
                  if (com.aspose.cells.a.c.zc.a(var7)) {
                     Object[] var11 = (Object[])((Object[])var7);

                     for(int var12 = 0; var12 < var11.length; ++var12) {
                        var8[var13][var12] = zqq.a(var3, com.aspose.cells.b.a.za.a(var11, var12), this.e.getSettings());
                     }
                  } else {
                     var8[var13][0] = zqq.a(var3, var7, this.e.getSettings());
                  }
               }
            }

            return var8;
         } else {
            return zqq.a(var3, var5, this.e.getSettings());
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object K(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 1 && var1.d().size() <= 3) {
         zabd var5 = (zabd)var1.d().get(0);
         Object var3 = this.b(var5, var2);
         var3 = zyn.e(var3, this.e.getSettings().getDate1904());
         if (var3 instanceof zst) {
            return var3;
         } else {
            Object var4;
            if (var1.d().size() > 1) {
               var5 = (zabd)var1.d().get(1);
               var4 = this.b(var5, var2);
               if (var4 != null) {
                  var4 = zyn.e(var4, this.e.getSettings().getDate1904());
                  if (var4 instanceof zst) {
                     return var4;
                  }
               } else {
                  var4 = 2.0D;
               }
            } else {
               var4 = 2.0D;
            }

            int var6 = (int)com.aspose.cells.a.c.zi.b(var4);
            double var7 = Math.pow(10.0D, (double)var6);
            double var9 = (Double)var3;
            double var11;
            if (var9 > 0.0D) {
               var11 = (double)((int)(var9 * var7 + 0.5D)) / var7;
            } else {
               var11 = (double)((int)(var9 * var7 - 0.5D)) / var7;
            }

            boolean var13 = false;
            if (var1.d().size() == 3) {
               var5 = (zabd)var1.d().get(1);
               var4 = this.b(var5, var2);
               if (var4 == null) {
                  return null;
               }

               if (var4 instanceof Boolean) {
                  var13 = (Boolean)var4;
               }
            }

            if (var13) {
               return com.aspose.cells.b.a.zn.b(var11);
            } else {
               StringBuilder var14 = new StringBuilder("#" + com.aspose.cells.b.a.c.za.a().d().b() + "##0");
               if (var6 > 0) {
                  var14.append(com.aspose.cells.b.a.c.za.a().d().c());

                  for(int var15 = 0; var15 < var6; ++var15) {
                     var14.append("0");
                  }
               }

               return com.aspose.cells.b.a.zn.a(var11, com.aspose.cells.b.a.zr.a(var14));
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object L(zabd var1, Cell var2) {
      if (var1.d().size() != 2) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         if (var4 == null) {
            return 0.0D;
         } else {
            var4 = zyn.e(var4, this.e.getSettings().getDate1904());
            if (var4 instanceof zst) {
               return var4;
            } else if ((Double)var4 == 0.0D) {
               return var4;
            } else {
               zabd var5 = (zabd)var1.d().get(1);
               Object var6 = this.b(var5, var2);
               if (var6 == null) {
                  return zst.a;
               } else {
                  var6 = zyn.e(var6, this.e.getSettings().getDate1904());
                  if (var6 instanceof zst) {
                     return var6;
                  } else {
                     double var7 = (Double)var4;
                     double var9 = (Double)var6;
                     if (var9 == 0.0D) {
                        return zst.a;
                     } else if (var7 * var9 < 0.0D) {
                        return zst.f;
                     } else {
                        return var9 >= -1.0D && var9 <= 1.0D ? (double)((int)(var7 * (1.0D / var9))) * var9 : (double)((int)(var7 / var9)) * var9;
                     }
                  }
               }
            }
         }
      }
   }

   private Object M(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 >= 2 && var3 <= 5) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            Object var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               double var7 = (Double)var9;
               double var10 = 0.0D;
               Object var12 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var12 instanceof Double) {
                  var10 = (Double)var12;
                  double var17 = 0.0D;
                  if (var3 > 3) {
                     Object var14 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                     if (!(var14 instanceof Double)) {
                        return var14;
                     }

                     var17 = (Double)var14;
                  }

                  double var18 = 0.0D;
                  if (var3 > 4) {
                     Object var16 = zyn.e(this.b((zabd)var1.d().get(4), var2), this.e.getSettings().getDate1904());
                     if (!(var16 instanceof Double)) {
                        return var16;
                     }

                     var18 = (Double)var16;
                     if (var18 != 0.0D) {
                        var18 = 1.0D;
                     }
                  }

                  return zvp.a(var4, var7, var10, var17, var18);
               } else {
                  return var12;
               }
            } else {
               return var9;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object N(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 >= 3 && var3 <= 4) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            Object var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               double var7 = (Double)var9;
               double var10 = 0.0D;
               Object var12 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var12 instanceof Double) {
                  var10 = (Double)var12;
                  boolean var14 = false;
                  if (var3 > 3) {
                     Object var13 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                     if (!(var13 instanceof Double)) {
                        return var13;
                     }

                     var14 = (Double)var13 != 0.0D;
                  }

                  return zbor.a(var4, var7, var10, var14);
               } else {
                  return var12;
               }
            } else {
               return var9;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object O(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 3) {
         Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var5 instanceof Double) {
            double var3 = (Double)var5;
            Object var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var8 instanceof Double) {
               double var6 = (Double)var8;
               double var9 = 0.0D;
               Object var11 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var11 instanceof Double) {
                  var9 = (Double)var11;
                  return zbor.a(var3, var6, var9);
               } else {
                  return var11;
               }
            } else {
               return var8;
            }
         } else {
            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object P(zabd var1, Cell var2) {
      if (var1.d() == null) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         int var3 = var1.d().size();
         if (var3 != 4) {
            throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
         } else {
            double[] var4 = new double[var3];

            for(int var5 = 0; var5 < var3; ++var5) {
               Object var6 = zyn.e(this.b((zabd)var1.d().get(var5), var2), this.e.getSettings().getDate1904());
               if (!(var6 instanceof Double)) {
                  return var6;
               }

               var4[var5] = (Double)var6;
            }

            return zbor.a((int)var4[0], (int)var4[1], var4[2], var4[3] != 0.0D);
         }
      }
   }

   private Object Q(zabd var1, Cell var2) {
      if (var1.d() == null) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         int var3 = var1.d().size();
         if (var3 != 3) {
            throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
         } else {
            double[] var4 = new double[var3];

            for(int var5 = 0; var5 < var3; ++var5) {
               Object var6 = zyn.e(this.b((zabd)var1.d().get(var5), var2), this.e.getSettings().getDate1904());
               if (!(var6 instanceof Double)) {
                  return var6;
               }

               var4[var5] = (Double)var6;
            }

            return zbor.a(var4[0], var4[1], var4[2] != 0.0D);
         }
      }
   }

   private Object R(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 >= 3 && var3 <= 5) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            Object var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               double var7 = (Double)var9;
               double var10 = 0.0D;
               Object var12 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var12 instanceof Double) {
                  var10 = (Double)var12;
                  double var17 = 0.0D;
                  if (var3 > 3) {
                     Object var14 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                     if (!(var14 instanceof Double)) {
                        return var14;
                     }

                     var17 = (Double)var14;
                  }

                  double var18 = 1.0D;
                  if (var3 > 4) {
                     Object var16 = zyn.e(this.b((zabd)var1.d().get(4), var2), this.e.getSettings().getDate1904());
                     if (!(var16 instanceof Double)) {
                        return var16;
                     }

                     var18 = (Double)var16;
                  }

                  return zbor.a(var4, var7, var10, var17, var18);
               } else {
                  return var12;
               }
            } else {
               return var9;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object S(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 >= 3 && var3 <= 5) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            Object var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               double var7 = (Double)var9;
               double var10 = 0.0D;
               Object var12 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var12 instanceof Double) {
                  var10 = (Double)var12;
                  double var17 = 0.0D;
                  if (var3 > 3) {
                     Object var14 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                     if (!(var14 instanceof Double)) {
                        return var14;
                     }

                     var17 = (Double)var14;
                  }

                  double var18 = 1.0D;
                  if (var3 > 4) {
                     Object var16 = zyn.e(this.b((zabd)var1.d().get(4), var2), this.e.getSettings().getDate1904());
                     if (!(var16 instanceof Double)) {
                        return var16;
                     }

                     var18 = (Double)var16;
                  }

                  return zbor.b(var4, var7, var10, var17, var18);
               } else {
                  return var12;
               }
            } else {
               return var9;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object T(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 == 3) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            double var7 = 0.0D;
            Object var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               var7 = (Double)var9;
               double var10 = 0.0D;
               Object var12 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var12 instanceof Double) {
                  var10 = (Double)var12;
                  return zbor.a(var4, var7, (int)var10);
               } else {
                  return var12;
               }
            } else {
               return var9;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object U(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 == 2) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            double var7 = 0.0D;
            Object var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               var7 = (Double)var9;
               return zbor.a(var4, var7);
            } else {
               return var9;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object V(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var5 instanceof Double) {
            double var3 = (Double)var5;
            double var6 = 0.0D;
            Object var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var8 instanceof Double) {
               var6 = (Double)var8;
               return zbor.b(var3, var6);
            } else {
               return var8;
            }
         } else {
            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object W(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var5 instanceof Double) {
            double var3 = (Double)var5;
            double var6 = 0.0D;
            Object var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var8 instanceof Double) {
               var6 = (Double)var8;
               return zbor.c(var3, var6);
            } else {
               return var8;
            }
         } else {
            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object X(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 3) {
         Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var5 instanceof Double) {
            double var3 = (Double)var5;
            double var6 = 0.0D;
            Object var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var8 instanceof Double) {
               var6 = (Double)var8;
               double var9 = 0.0D;
               Object var11 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var11 instanceof Double) {
                  var9 = (Double)var11;
                  return zbor.b(var3, var6, var9);
               } else {
                  return var11;
               }
            } else {
               return var8;
            }
         } else {
            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object Y(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 3) {
         Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var5 instanceof Double) {
            double var3 = (Double)var5;
            double var6 = 0.0D;
            Object var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var8 instanceof Double) {
               var6 = (Double)var8;
               double var9 = 0.0D;
               Object var11 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var8 instanceof Double) {
                  var9 = (Double)var11;
                  return zbor.c(var3, var6, var9);
               } else {
                  return var11;
               }
            } else {
               return var8;
            }
         } else {
            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object d(zabd var1, Cell var2, int var3) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var6 = (zabd)var1.d().get(0);
         Object var4 = this.b(var6, var2);
         var6 = (zabd)var1.d().get(1);
         Object var5 = this.b(var6, var2);
         if (var4 != null && var4 instanceof Object[][]) {
            return zba.a((Object[][])((Object[][])var4), var5, this.e, var3);
         } else {
            switch(var3) {
            case -1:
               return zbc.a(var4, var5, this.e);
            case 0:
               return zbc.b(var4, var5, this.e);
            case 1:
               return zbc.c(var4, var5, this.e);
            default:
               return null;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object Z(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 1) {
         zabd var4 = (zabd)var1.d().get(0);
         Object var3 = this.b(var4, var2);
         var3 = zyn.b(var3);
         return var3 instanceof zst ? var3 : zbso.a((String)var3);
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object aa(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var5 = (zabd)var1.d().get(0);
         Object var3 = this.b(var5, var2);
         var3 = zyn.b(var3);
         if (var3 instanceof zst) {
            return var3;
         } else {
            var5 = (zabd)var1.d().get(1);
            Object var4 = this.b(var5, var2);
            if (var3 != null && var4 != null) {
               var4 = zyn.e(var4, this.e.getSettings().getDate1904());
               if (var4 instanceof zst) {
                  return var4;
               } else {
                  int var6 = (int)com.aspose.cells.a.c.zi.b(var4);
                  if (var6 == 0) {
                     return "";
                  } else if (var6 < 0) {
                     return zst.i;
                  } else if (((String)var3).length() * var6 > 32767) {
                     return zst.i;
                  } else {
                     StringBuilder var7 = new StringBuilder();

                     for(int var8 = 0; var8 < var6; ++var8) {
                        var7.append((String)var3);
                     }

                     return com.aspose.cells.b.a.zr.a(var7);
                  }
               }
            } else {
               return null;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ab(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 3 && var1.d().size() <= 5) {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         if (var4 != null && var4 instanceof zst) {
            return var4;
         } else {
            var1.a("");
            zabd var5 = (zabd)var1.d().get(1);
            Object var6 = this.b(var5, var2);
            zabd var7 = (zabd)var1.d().get(2);
            Object var8 = this.b(var7, var2);
            if (var4 instanceof zft) {
               zft var9 = (zft)var4;
               CellArea var10 = var9.d;
               int var11;
               String var13;
               if (var6 == null) {
                  var11 = 0;
               } else {
                  if (var6 instanceof zst) {
                     var1.a("OFFSET");
                     return var6;
                  }

                  switch(zamo.a(var6.getClass())) {
                  case 14:
                     var11 = (int)com.aspose.cells.a.c.zi.b(var6);
                     break;
                  case 15:
                  case 17:
                  default:
                     var1.a("OFFSET");
                     return zst.i;
                  case 16:
                     var11 = (int)CellsHelper.getDoubleFromDateTime((DateTime)var6, this.e.getSettings().getDate1904());
                     break;
                  case 18:
                     var13 = (String)var6;
                     if (!zapb.c(var13)) {
                        var1.a("OFFSET");
                        return zst.i;
                     }

                     try {
                        var11 = (int)com.aspose.cells.b.a.zn.a(var13);
                     } catch (Exception var17) {
                        var1.a("OFFSET");
                        return zst.i;
                     }
                  }
               }

               int var12;
               if (var8 == null) {
                  var12 = 0;
               } else {
                  if (var8 instanceof zst) {
                     var1.a("OFFSET");
                     return var8;
                  }

                  switch(zamo.a(var8.getClass())) {
                  case 14:
                     var12 = (int)com.aspose.cells.a.c.zi.b(var8);
                     break;
                  case 15:
                  case 17:
                  default:
                     var1.a("OFFSET");
                     return zst.i;
                  case 16:
                     var12 = (int)CellsHelper.getDoubleFromDateTime((DateTime)var8, this.e.getSettings().getDate1904());
                     break;
                  case 18:
                     var13 = (String)var8;
                     if (!zapb.d(var13)) {
                        var1.a("OFFSET");
                        return zst.i;
                     }

                     try {
                        var12 = (int)com.aspose.cells.b.a.zn.a(var13);
                     } catch (Exception var16) {
                        var1.a("OFFSET");
                        return zst.i;
                     }
                  }
               }

               var10.StartRow += var11;
               var10.EndRow += var11;
               var10.EndColumn += var12;
               var10.StartColumn += var12;
               Object var14;
               int var15;
               zabd var18;
               if (var1.d().size() > 3) {
                  var18 = (zabd)var1.d().get(3);
                  if (!var18.a()) {
                     var14 = zyn.e(this.b(var18, var2), this.e.getSettings().getDate1904());
                     if (!(var14 instanceof Double)) {
                        var1.a("OFFSET");
                        return var14;
                     }

                     var15 = (int)com.aspose.cells.a.c.zi.b(var14);
                     if (var15 == 0) {
                        var1.a("OFFSET");
                        return zst.g;
                     }

                     if (var15 > 0) {
                        var10.EndRow = var10.StartRow + var15 - 1;
                     } else {
                        if (var15 >= 0) {
                           return zst.g;
                        }

                        var10.StartRow += var15 + 1;
                     }
                  }
               }

               if (var1.d().size() > 4) {
                  var18 = (zabd)var1.d().get(4);
                  if (!var18.a()) {
                     var14 = zyn.e(this.b(var18, var2), this.e.getSettings().getDate1904());
                     if (!(var14 instanceof Double)) {
                        var1.a("OFFSET");
                        return var14;
                     }

                     var15 = (int)com.aspose.cells.a.c.zi.b(var14);
                     if (var15 == 0) {
                        var1.a("OFFSET");
                        return zst.g;
                     }

                     if (var15 > 0) {
                        var10.EndColumn = var10.StartColumn + var15 - 1;
                     } else {
                        if (var15 >= 0) {
                           return zst.g;
                        }

                        var10.StartColumn += var15 + 1;
                     }
                  }
               }

               if (var10.StartColumn >= 0 && var10.StartColumn <= 16383 && var10.EndColumn >= 0 && var10.EndColumn <= 16383 && var10.StartRow >= 0 && var10.StartRow <= 1048575 && var10.EndRow >= 0 && var10.EndRow <= 1048575) {
                  int var19;
                  if (var10.StartRow > var10.EndRow) {
                     var19 = var10.StartRow;
                     var10.StartRow = var10.EndRow;
                     var10.EndRow = var19;
                  }

                  if (var10.StartColumn > var10.EndColumn) {
                     var19 = var10.StartColumn;
                     var10.StartColumn = var10.EndColumn;
                     var10.EndColumn = var19;
                  }

                  if (var1.c() != null) {
                     if (var1.c().i() == 3) {
                        switch(u.a(var1.c().b())) {
                        case 23:
                        case 24:
                        case 25:
                        case 30:
                        case 70:
                           var9.d = var10;
                           return var9;
                        case 44:
                           if (var1.c().d().size() == 3 && var1.c().d().get(2) == var1) {
                              var9.d = var10;
                              return var9;
                           }
                        }
                     } else if (var1.c().f() != null) {
                        switch(var1.c().f()[0]) {
                        case 17:
                           var9.d = var10;
                           return var9;
                        }
                     }
                  } else if (var2 == null) {
                     var9.d = var10;
                     return var9;
                  }

                  Object var20;
                  if (var10.StartRow == var10.EndRow && var10.StartColumn == var10.EndColumn) {
                     if (var1.c() != null && var1.c().f() != null && var1.f().length > 0 && var1.c().f()[0] == 17) {
                        var1.a("OFFSET");
                        var9.d = var10;
                        return var9;
                     } else {
                        var20 = this.a(var1, this.e.getWorksheets().get(var9.b), var2, var10.StartRow, var10.StartColumn);
                        var1.a("OFFSET");
                        return var20;
                     }
                  } else {
                     var20 = this.a(var1, this.e.getWorksheets().get(var9.b), var2, var10.StartRow, var10.EndRow, var10.StartColumn, var10.EndColumn);
                     var1.a("OFFSET");
                     return var20;
                  }
               } else {
                  var1.a("OFFSET");
                  return zst.g;
               }
            } else {
               var1.a("OFFSET");
               return null;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ac(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         boolean var3 = true;

         for(int var4 = 0; var4 < var1.d().size(); ++var4) {
            zabd var5 = (zabd)var1.d().get(var4);
            Object var6 = this.b(var5, var2);
            if (var6 != null) {
               if (var6 instanceof zst) {
                  return var6;
               }

               switch(zamo.a(var6.getClass())) {
               case 3:
                  if ((Boolean)var6) {
                     ++var4;

                     while(var4 < var1.d().size()) {
                        var5 = (zabd)var1.d().get(var4);
                        var6 = this.b(var5, var2);
                        if (var6 != null && var6 instanceof zst) {
                           return var6;
                        }

                        ++var4;
                     }

                     return true;
                  }

                  var3 = false;
                  break;
               case 14:
                  double var7 = (Double)var6;
                  if (Math.abs(var7) >= Double.MIN_VALUE) {
                     return true;
                  }

                  var3 = false;
                  break;
               case 18:
                  return zst.i;
               default:
                  if (com.aspose.cells.a.c.zc.a(var6)) {
                     Object[] var9 = (Object[])((Object[])var6);

                     for(int var10 = 0; var10 < var9.length; ++var10) {
                        Object var11 = com.aspose.cells.b.a.za.a(var9, var10);
                        if (var11 != null) {
                           if (com.aspose.cells.a.c.zc.a(var11)) {
                              Object[] var12 = (Object[])((Object[])var11);

                              for(int var13 = 0; var13 < var12.length; ++var13) {
                                 Object var14 = com.aspose.cells.b.a.za.a(var12, var13);
                                 if (var14 != null && var14 instanceof Boolean) {
                                    if ((Boolean)var14) {
                                       return true;
                                    }

                                    var3 = false;
                                 }
                              }
                           } else if (var11 instanceof Boolean) {
                              if ((Boolean)var11) {
                                 return true;
                              }

                              var3 = false;
                           }
                        }
                     }
                  }
               }
            }
         }

         if (!var3) {
            return false;
         } else {
            return zst.i;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ad(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         double var3 = 0.0D;
         boolean var5 = true;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var8 = this.b(var7, var2);
            if (var8 != null) {
               if (var8 instanceof zst) {
                  return var8;
               }

               double var9;
               if (var8 instanceof Object[][]) {
                  Object[][] var11 = (Object[][])((Object[][])var8);
                  if (var11[0][0] instanceof zft) {
                     var8 = this.a(var1, var2, var11);
                     var11 = (Object[][])((Object[][])var8);
                  }

                  for(int var12 = 0; var12 < var11.length; ++var12) {
                     if (var11[var12] != null) {
                        for(int var13 = 0; var13 < var11[var12].length; ++var13) {
                           Object var14 = var11[var12][var13];
                           if (var14 != null) {
                              if (!this.c && var14 instanceof zst) {
                                 return var14;
                              }

                              if (var14 instanceof Double) {
                                 var9 = (Double)var14;
                                 if (var5) {
                                    var3 = var9;
                                    var5 = false;
                                 } else if (var9 > var3) {
                                    var3 = var9;
                                 }
                              }
                           }
                        }
                     }
                  }
               } else {
                  switch(zamo.a(var8.getClass())) {
                  case 3:
                     if (((zabd)var1.d().get(var6)).f() == null) {
                        break;
                     }

                     switch(((zabd)var1.d().get(var6)).f()[0]) {
                     case 9:
                     case 10:
                     case 11:
                     case 12:
                     case 13:
                     case 14:
                     case 29:
                     case 33:
                     case 34:
                        if ((Boolean)var8) {
                           if (var3 < 1.0D || var5) {
                              var3 = 1.0D;
                           }
                        } else if (var3 < 0.0D) {
                           var3 = 0.0D;
                        }

                        if (var5) {
                           var5 = false;
                        }
                     case 15:
                     case 16:
                     case 17:
                     case 18:
                     case 19:
                     case 20:
                     case 21:
                     case 22:
                     case 23:
                     case 24:
                     case 25:
                     case 26:
                     case 27:
                     case 28:
                     case 30:
                     case 31:
                     case 32:
                     default:
                        continue;
                     }
                  case 14:
                     var9 = (Double)var8;
                     if (var5) {
                        var3 = var9;
                        var5 = false;
                     } else if (var9 > var3) {
                        var3 = var9;
                     }
                     break;
                  case 16:
                     var9 = CellsHelper.getDoubleFromDateTime((DateTime)var8, this.e.getSettings().getDate1904());
                     if (var5) {
                        var3 = var9;
                        var5 = false;
                     } else if (var9 > var3) {
                        var3 = var9;
                     }
                     break;
                  case 18:
                     if (((zabd)var1.d().get(var6)).f() != null && ((zabd)var1.d().get(var6)).f()[0] == 23) {
                        return zst.i;
                     }
                  }
               }
            }
         }

         if (var5) {
            return 0.0D;
         } else {
            return var3;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ae(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         double var3 = 0.0D;
         boolean var5 = true;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var8 = this.b(var7, var2);
            if (var8 != null) {
               if (var8 instanceof zst) {
                  return var8;
               }

               double var9;
               if (var8 instanceof Object[][]) {
                  Object[][] var11 = (Object[][])((Object[][])var8);

                  for(int var12 = 0; var12 < var11.length; ++var12) {
                     if (var11[var12] != null) {
                        for(int var13 = 0; var13 < var11[var12].length; ++var13) {
                           Object var14 = var11[var12][var13];
                           if (var14 != null) {
                              if (!this.c && var14 instanceof zst) {
                                 return var14;
                              }

                              if (var14 instanceof Double) {
                                 var9 = (Double)var14;
                                 if (var5) {
                                    var3 = var9;
                                    var5 = false;
                                 } else if (var9 < var3) {
                                    var3 = var9;
                                 }
                              }
                           }
                        }
                     }
                  }
               } else {
                  switch(zamo.a(var8.getClass())) {
                  case 3:
                     if (((zabd)var1.d().get(var6)).f() == null) {
                        break;
                     }

                     switch(((zabd)var1.d().get(var6)).f()[0]) {
                     case 9:
                     case 10:
                     case 11:
                     case 12:
                     case 13:
                     case 14:
                     case 29:
                     case 33:
                     case 34:
                        if ((Boolean)var8) {
                           if (var3 > 1.0D || var5) {
                              var3 = 1.0D;
                           }
                        } else if (var3 > 0.0D) {
                           var3 = 0.0D;
                        }

                        if (var5) {
                           var5 = false;
                        }
                     case 15:
                     case 16:
                     case 17:
                     case 18:
                     case 19:
                     case 20:
                     case 21:
                     case 22:
                     case 23:
                     case 24:
                     case 25:
                     case 26:
                     case 27:
                     case 28:
                     case 30:
                     case 31:
                     case 32:
                     default:
                        continue;
                     }
                  case 14:
                     var9 = (Double)var8;
                     if (var5) {
                        var3 = var9;
                        var5 = false;
                     } else if (var9 < var3) {
                        var3 = var9;
                     }
                     break;
                  case 16:
                     var9 = CellsHelper.getDoubleFromDateTime((DateTime)var8, this.e.getSettings().getDate1904());
                     if (var5) {
                        var3 = var9;
                        var5 = false;
                     } else if (var9 < var3) {
                        var3 = var9;
                     }
                     break;
                  case 18:
                     if (((zabd)var1.d().get(var6)).f() != null && ((zabd)var1.d().get(var6)).f()[0] == 23) {
                        return zst.i;
                     }
                  }
               }
            }
         }

         if (var5) {
            return 0.0D;
         } else {
            return var3;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object af(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         double var3 = 0.0D;
         boolean var5 = true;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var8 = this.b(var7, var2);
            if (var8 != null) {
               if (var8 instanceof zst) {
                  return var8;
               }

               double var9;
               if (!com.aspose.cells.a.c.zc.a(var8)) {
                  var8 = zyn.f(var8, this.e.getSettings().getDate1904());
                  if (var8 instanceof zst) {
                     return var8;
                  }

                  var9 = (Double)var8;
                  if (var5) {
                     var3 = var9;
                     var5 = false;
                  } else if (var9 > var3) {
                     var3 = var9;
                  }
               } else {
                  Object[] var11 = (Object[])((Object[])var8);

                  for(int var12 = 0; var12 < var11.length; ++var12) {
                     Object[] var13 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var11, var12));
                     if (var13 != null) {
                        for(int var14 = 0; var14 < var13.length; ++var14) {
                           Object var15 = com.aspose.cells.b.a.za.a(var13, var14);
                           var15 = zyn.f(var15, this.e.getSettings().getDate1904());
                           if (var15 instanceof zst) {
                              return var15;
                           }

                           var9 = (Double)var15;
                           if (var5) {
                              var3 = var9;
                              var5 = false;
                           } else if (var9 > var3) {
                              var3 = var9;
                           }
                        }
                     }
                  }
               }
            }
         }

         if (var5) {
            return 0.0D;
         } else {
            return var3;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ag(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         double var3 = 0.0D;
         boolean var5 = true;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var8 = this.b(var7, var2);
            if (var8 != null) {
               if (var8 instanceof zst) {
                  return var8;
               }

               double var9;
               if (!com.aspose.cells.a.c.zc.a(var8)) {
                  var8 = zyn.f(var8, this.e.getSettings().getDate1904());
                  if (var8 instanceof zst) {
                     return var8;
                  }

                  var9 = (Double)var8;
                  if (var5) {
                     var3 = var9;
                     var5 = false;
                  } else if (var9 < var3) {
                     var3 = var9;
                  }
               } else {
                  Object[] var11 = (Object[])((Object[])var8);

                  for(int var12 = 0; var12 < var11.length; ++var12) {
                     Object[] var13 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var11, var12));
                     if (var13 != null) {
                        for(int var14 = 0; var14 < var13.length; ++var14) {
                           Object var15 = com.aspose.cells.b.a.za.a(var13, var14);
                           var15 = zyn.f(var15, this.e.getSettings().getDate1904());
                           if (var15 instanceof zst) {
                              return var15;
                           }

                           var9 = (Double)var15;
                           if (var5) {
                              var3 = var9;
                              var5 = false;
                           } else if (var9 < var3) {
                              var3 = var9;
                           }
                        }
                     }
                  }
               }
            }
         }

         if (var5) {
            return 0.0D;
         } else {
            return var3;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ah(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var5 = (zabd)var1.d().get(0);
         Object var3 = this.b(var5, var2);
         var5 = (zabd)var1.d().get(1);
         Object var4 = this.b(var5, var2);
         if (var4 == null) {
            return zst.a;
         } else if (var3 == null) {
            return 0.0D;
         } else {
            var3 = zyn.e(var3, this.e.getSettings().getDate1904());
            var4 = zyn.e(var4, this.e.getSettings().getDate1904());
            if (!(var3 instanceof Double)) {
               return var3;
            } else if (!(var4 instanceof Double)) {
               return var4;
            } else {
               double var6 = (Double)var3;
               double var8 = (Double)var4;
               if (Math.abs(var8) < Double.MIN_VALUE) {
                  return zst.a;
               } else if (Math.abs(var6) < Double.MIN_VALUE) {
                  return 0.0D;
               } else {
                  double var10 = var6 % var8;
                  if (var10 != 0.0D && Math.signum(var6) != Math.signum(var8)) {
                     var10 += var8;
                  }

                  return var10;
               }
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ai(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var5 = (zabd)var1.d().get(0);
         Object var3 = this.b(var5, var2);
         var3 = zyn.e(var3, this.e.getSettings().getDate1904());
         if (var3 instanceof zst) {
            return var3;
         } else {
            var5 = (zabd)var1.d().get(1);
            Object var4 = zyn.e(this.b(var5, var2), this.e.getSettings().getDate1904());
            if (var4 instanceof zst) {
               return var4;
            } else {
               double var6 = (Double)var3;
               double var8 = (Double)var4;
               if (var6 != 0.0D && var8 != 0.0D) {
                  if (var6 * var8 < 0.0D) {
                     return zst.f;
                  } else {
                     int var10 = (int)(var6 / var8 + 0.5D);
                     return var8 * (double)var10;
                  }
               } else {
                  return 0.0D;
               }
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object aj(zabd var1, Cell var2) {
      zcfa var3 = new zcfa(this, this.e);
      return var3.a(var1, var2);
   }

   private Object c(zabd var1, Cell var2, boolean var3) {
      if (var1.d() != null && var1.d().size() == 1) {
         Object var4 = this.b((zabd)var1.d().get(0), var2);
         if (var4 == null) {
            return 0.0D;
         } else if (var4 instanceof zst) {
            return var4;
         } else if (!com.aspose.cells.a.c.zc.a(var4)) {
            if (var4 instanceof DateTime) {
               var4 = CellsHelper.getDoubleFromDateTime((DateTime)var4, this.e.getSettings().getDate1904());
            }

            String var10 = com.aspose.cells.b.a.zr.a(var4);
            return var3 ? (double)zbso.c(var10) : (double)var10.length();
         } else {
            Object[] var5 = (Object[])((Object[])var4);
            Object[][] var6 = new Object[var5.length][];

            for(int var7 = 0; var7 < var5.length; ++var7) {
               Object[] var8 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var5, var7));
               if (var8 != null) {
                  var6[var7] = new Object[var8.length];

                  for(int var9 = 0; var9 < var8.length; ++var9) {
                     var4 = com.aspose.cells.b.a.za.a(var8, var9);
                     if (var4 == null) {
                        var6[var7][var9] = 0.0D;
                     } else if (var4 instanceof zst) {
                        var6[var7][var9] = var4;
                     } else if (var3) {
                        var6[var7][var9] = (double)zbso.c(com.aspose.cells.b.a.zr.a(var4));
                     } else {
                        var6[var7][var9] = (double)com.aspose.cells.b.a.zr.a(var4).length();
                     }
                  }
               }
            }

            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object a(zabd var1, Cell var2, boolean var3, boolean var4) {
      if (var1.d() != null && (var1.d().size() == 1 || var1.d().size() == 2)) {
         int var5 = var1.d().size();
         Object var6 = this.b((zabd)var1.d().get(0), var2);
         int var7 = 1;
         if (var5 == 2) {
            Object var8 = this.b((zabd)var1.d().get(1), var2);
            var8 = zyn.e(var8, this.e.getSettings().getDate1904());
            if (var8 instanceof zst) {
               return var8;
            }

            var7 = (int)com.aspose.cells.a.c.zi.b(var8);
         }

         if (var6 instanceof Object[][]) {
            return zbso.a((Object[][])((Object[][])var6), var7, var3, var4);
         } else {
            var6 = zyn.b(var6);
            if (var6 instanceof zst) {
               return var6;
            } else {
               return var3 ? zbso.b((String)var6, var7, var4) : zbso.a((String)var6, var7, var4);
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object d(zabd var1, Cell var2, boolean var3) {
      if (var1.d() != null && var1.d().size() == 3) {
         Object var4 = this.b((zabd)var1.d().get(0), var2);
         Object var5 = this.b((zabd)var1.d().get(1), var2);
         Object var6 = this.b((zabd)var1.d().get(2), var2);
         if (var5 != null && var6 != null) {
            if (var4 == null) {
               return "";
            } else if (var4 instanceof zst) {
               return var4;
            } else {
               String var7;
               switch(zamo.a(var4.getClass())) {
               case 3:
                  if ((Boolean)var4) {
                     var7 = "TRUE";
                  } else {
                     var7 = "FALSE";
                  }
                  break;
               default:
                  if (com.aspose.cells.a.c.zc.a(var4)) {
                     Object[] var8 = (Object[])((Object[])var4);
                     if (var8.length > 1) {
                        return zst.i;
                     }

                     var8 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var8, 0));
                     if (var8.length > 1) {
                        return zst.i;
                     }

                     var4 = com.aspose.cells.b.a.za.a((Object[])var8, 0);
                     if (var4 == null) {
                        return "";
                     }

                     if (var4 instanceof Boolean) {
                        if ((Boolean)var4) {
                           var7 = "TRUE";
                        } else {
                           var7 = "FALSE";
                        }
                     }
                  }

                  var7 = com.aspose.cells.b.a.zr.a(var4);
               }

               boolean var10 = false;
               var5 = zyn.e(var5, this.e.getSettings().getDate1904());
               if (var5 instanceof Double) {
                  int var11 = (int)com.aspose.cells.a.c.zi.b(var5) - 1;
                  if (var11 < 0) {
                     return zst.i;
                  } else {
                     boolean var9 = false;
                     var6 = zyn.e(var6, this.e.getSettings().getDate1904());
                     if (var6 instanceof Double) {
                        int var12 = (int)com.aspose.cells.a.c.zi.b(var6);
                        if (var12 < 0) {
                           return zst.i;
                        } else if (var3) {
                           return zbso.a(var7, var11 + 1, var12);
                        } else {
                           var7 = com.aspose.cells.b.a.zv.a(var7, "\r\n", "\n");
                           if (var11 < 0) {
                              return var7;
                           } else if (var11 >= var7.length()) {
                              return "";
                           } else {
                              return var12 + var11 <= var7.length() && var12 <= var7.length() ? var7.substring(var11, var11 + var12) : var7.substring(var11);
                           }
                        }
                     } else {
                        return var6;
                     }
                  }
               } else {
                  return var5;
               }
            }
         } else {
            return zst.i;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object e(zabd var1, Cell var2, boolean var3) {
      if (var1.d() != null && var1.d().size() >= 2) {
         Object var4 = this.b((zabd)var1.d().get(0), var2);
         if (var4 == null) {
            return 1.0D;
         } else if (var4 instanceof zst) {
            return var4;
         } else {
            String var5 = com.aspose.cells.b.a.zr.a(var4);
            if ("".equals(var5)) {
               return 1.0D;
            } else {
               Object var6 = this.b((zabd)var1.d().get(1), var2);
               if (var6 == null) {
                  return zst.i;
               } else {
                  if (com.aspose.cells.a.c.zc.a(var6)) {
                     Object[] var7 = (Object[])((Object[])var6);
                     if (var7.length > 1) {
                        return zst.i;
                     }

                     var7 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var7, 0));
                     if (var7.length > 1) {
                        return zst.i;
                     }

                     var6 = com.aspose.cells.b.a.za.a((Object[])var7, 0);
                     if (var6 == null) {
                        return zst.i;
                     }
                  }

                  if (var6 instanceof zst) {
                     return var6;
                  } else {
                     String var11 = com.aspose.cells.b.a.zv.a(com.aspose.cells.b.a.zr.a(var6), "\r\n", "\n");
                     if ("".equals(var11)) {
                        return zst.i;
                     } else if (var1.d().size() == 2) {
                        if (var3) {
                           return zyn.e(zbso.a(var5, var11), false);
                        } else {
                           int var12 = var11.indexOf(var5);
                           if (var12 == -1) {
                              return zst.i;
                           } else {
                              ++var12;
                              return (double)var12;
                           }
                        }
                     } else {
                        Object var8 = this.b((zabd)var1.d().get(2), var2);
                        if (var8 == null) {
                           return zst.i;
                        } else {
                           int var9 = zyn.a(this.e, var8, true);
                           if (var9 < 0) {
                              return zst.i;
                           } else if (var3) {
                              return zbso.b(var5, var11, var9 + 1);
                           } else if (var9 >= var11.length()) {
                              return zst.i;
                           } else {
                              int var10 = var11.indexOf(var5, var9);
                              if (var10 == -1) {
                                 return zst.i;
                              } else {
                                 ++var10;
                                 return (double)var10;
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object f(zabd var1, Cell var2, boolean var3) {
      if (var1.d() != null && var1.d().size() >= 2) {
         Object var4 = this.b((zabd)var1.d().get(0), var2);
         if (var4 == null) {
            return 1;
         } else if (var4 instanceof zst) {
            return var4;
         } else {
            String var5 = com.aspose.cells.b.a.zr.a(var4).toUpperCase();
            Object var6 = this.b((zabd)var1.d().get(1), var2);
            if (var6 == null) {
               return zst.i;
            } else if (var6 instanceof zst) {
               return var6;
            } else {
               if (com.aspose.cells.a.c.zc.a(var6)) {
                  Object[] var7 = (Object[])((Object[])var6);
                  if (var7.length > 1) {
                     return zst.i;
                  }

                  var7 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var7, 0));
                  if (var7.length > 1) {
                     return zst.i;
                  }

                  var6 = com.aspose.cells.b.a.za.a((Object[])var7, 0);
                  if (var6 == null) {
                     return zst.i;
                  }
               }

               String var9 = com.aspose.cells.b.a.zr.a(var6).toUpperCase();
               if ("".equals(var9)) {
                  return zst.i;
               } else {
                  Object var8 = null;
                  if (var1.d().size() > 2) {
                     var8 = this.b((zabd)var1.d().get(2), var2);
                     if (var8 == null) {
                        return zst.i;
                     }
                  }

                  return var4 instanceof Object[][] ? zbso.a((Object[][])((Object[][])var4), var9, var8, var3, this.e.getSettings()) : zbso.a(var5, var9, var8, var3, this.e.getSettings());
               }
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object g(zabd var1, Cell var2, boolean var3) {
      if (var1.d() != null && var1.d().size() == 4) {
         Object var4 = this.b((zabd)var1.d().get(0), var2);
         var4 = zyn.b(var4);
         if (var4 instanceof zst) {
            return var4;
         } else {
            String var5 = (String)var4;
            Object var6 = this.b((zabd)var1.d().get(1), var2);
            if (var6 == null) {
               return zst.i;
            } else {
               int var7 = zyn.a(this.e, var6, true);
               if (var7 < 0) {
                  return zst.i;
               } else {
                  Object var8 = this.b((zabd)var1.d().get(2), var2);
                  if (var8 == null) {
                     return zst.i;
                  } else {
                     int var9 = zyn.a(this.e, var8, false);
                     if (var9 < 0) {
                        return zst.i;
                     } else {
                        Object var10 = this.b((zabd)var1.d().get(3), var2);
                        var10 = zyn.b(var10);
                        if (var10 instanceof zst) {
                           return var10;
                        } else {
                           String var11 = (String)var10;
                           if (var3) {
                              return zbso.a(var5, var7 + 1, var9, var11);
                           } else if ("".equals(var5)) {
                              return var11;
                           } else if (var7 >= var5.length()) {
                              return var5 + var11;
                           } else {
                              return var7 + var9 > var5.length() ? var5.substring(0, 0 + var7) + var11 : var5.substring(0, 0 + var7) + var11 + var5.substring(var7 + var9);
                           }
                        }
                     }
                  }
               }
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ak(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      if (var3 == null) {
         return null;
      } else {
         var3 = zyn.b(var3);
         if (var3 instanceof zst) {
            return var3;
         } else {
            String var4 = (String)var3;
            String var5 = var4;
            if (var1.d().size() > 1) {
               var3 = this.b((zabd)var1.d().get(1), var2);
               if (var3 != null) {
                  var3 = zyn.b(var3);
                  if (var3 instanceof zst) {
                     return var3;
                  }

                  var5 = (String)var3;
               }
            }

            this.A(var1, var2);
            return var5;
         }
      }
   }

   private Object al(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 2) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         Object var4 = this.b((zabd)var1.d().get(1), var2);
         if (var1.d().size() == 2) {
            return zamk.a(var3, var4, this.e.getSettings().getDate1904());
         } else {
            Object var5 = this.b((zabd)var1.d().get(2), var2);
            if (var3 == null) {
               return zst.c;
            } else if (var3 instanceof Object[]) {
               return zst.i;
            } else {
               if (var5 instanceof zft) {
                  zft var6 = (zft)var5;
                  if (var6.d.StartRow != var6.d.EndRow && var6.d.StartColumn != var6.d.EndColumn) {
                     return zst.c;
                  }
               }

               if (var4 instanceof Object[]) {
                  Object[] var14 = (Object[])((Object[])var4);
                  Object var10;
                  if (var14.length == 1) {
                     Object[] var7 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var14, 0));
                     int var8 = -1;

                     for(int var9 = 0; var9 < var7.length; ++var9) {
                        var10 = com.aspose.cells.b.a.za.a(var7, var9);
                        if (var10 != null) {
                           Object var11 = zmc.a(var3, var10, this.e.getSettings().getDate1904(), true);
                           if (var11 instanceof zst) {
                              return var11;
                           }

                           double var12 = (Double)var11;
                           if (var12 < 0.0D) {
                              break;
                           }

                           var8 = var9;
                        }
                     }

                     if (var8 != -1) {
                        return this.a(var5, 0, var8);
                     }
                  } else {
                     for(int var15 = var14.length - 1; var15 >= 0; --var15) {
                        Object[] var16 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var14, var15));
                        Object var17 = com.aspose.cells.b.a.za.a((Object[])var16, 0);
                        if (var17 != null && !(var17 instanceof zst)) {
                           var10 = zmc.a(var3, var17, this.e.getSettings().getDate1904(), true);
                           if (var10 instanceof zst) {
                              return var10;
                           }

                           double var18 = (Double)var10;
                           if (var18 >= 0.0D) {
                              return this.a(var5, var15, 0);
                           }
                        }
                     }
                  }
               }

               return zst.c;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object a(Object var1, int var2, int var3) {
      if (var1 == null) {
         return var1;
      } else if (var1 instanceof Object[]) {
         Object[] var8 = (Object[])((Object[])var1);
         if (var2 >= var8.length) {
            return null;
         } else {
            Object var9 = com.aspose.cells.b.a.za.a(var8, var2);
            if (var9 instanceof Object[]) {
               Object[] var10 = (Object[])((Object[])var9);
               return var3 >= var10.length ? null : com.aspose.cells.b.a.za.a(var10, var3);
            } else {
               return var3 == 0 ? var9 : null;
            }
         }
      } else if (var1 instanceof zft) {
         zft var4 = (zft)var1;
         int var5 = var4.d.StartRow + var2;
         int var6 = var4.d.StartColumn + var3;
         Cell var7 = this.e.getWorksheets().get(var4.b).getCells().getRows().a.a(var5, var6);
         return var7 == null ? null : this.a(var7);
      } else {
         return var2 == 0 && var3 == 0 ? var1 : null;
      }
   }

   private Object am(zabd var1, Cell var2) {
      if (var1.d() != null && (var1.d().size() == 2 || var1.d().size() == 3)) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         if (var3 instanceof zst) {
            return var3;
         } else {
            boolean var4 = false;
            if (var1.c() != null && "MATCH".equals(var1.c().b()) && var1.c().d() != null && var1.c().d().size() > 1 && var1.c().d().get(1) == var1) {
               var4 = true;
            }

            boolean var5 = ((zabd)var1.d().get(1)).a();
            Object var6;
            if (!(var3 instanceof Object[][])) {
               var6 = zyn.c(var3, this.e.getSettings().getDate1904());
               if (!(var6 instanceof Boolean)) {
                  return var6;
               } else if ((Boolean)var6) {
                  return this.b((zabd)var1.d().get(1), var2);
               } else {
                  return var1.d().size() == 2 ? false : this.b((zabd)var1.d().get(2), var2);
               }
            } else {
               var6 = this.b((zabd)var1.d().get(1), var2);
               Object var7 = null;
               if (var1.d().size() == 3) {
                  var7 = this.b((zabd)var1.d().get(2), var2);
               }

               Object[] var8 = zba.a(new Object[]{var3, var6, var7});
               var7 = null;
               var6 = null;
               Object[][] var9 = (Object[][])((Object[][])var8[0]);
               Object[][] var10 = (Object[][])null;
               if (var8[1] instanceof Object[][]) {
                  var10 = (Object[][])((Object[][])var8[1]);
               } else if (var5) {
                  var6 = zml.g;
               } else {
                  var6 = var8[1];
               }

               Object[][] var11 = (Object[][])null;
               if (var8[2] instanceof Object[][]) {
                  var11 = (Object[][])((Object[][])var8[2]);
               } else if (var1.d().size() == 2) {
                  var7 = false;
               } else {
                  var7 = var8[2];
               }

               Object[][] var12 = new Object[var9.length][];
               int var13 = var9[0].length;

               for(int var14 = 0; var14 < var9.length; ++var14) {
                  if (var9[var14] == null) {
                     int var18;
                     if (var7 != null) {
                        var12[var14] = new Object[var13];

                        for(var18 = 0; var18 < var13; ++var18) {
                           var12[var14][var18] = var7;
                        }
                     } else if (var11 != null && var11[var14] != null) {
                        var12[var14] = new Object[var13];

                        for(var18 = 0; var18 < var13; ++var18) {
                           var12[var14][var18] = var11[var14][var18];
                        }
                     }
                  } else {
                     Object[] var15 = var9[var14];
                     var12[var14] = new Object[var15.length];

                     for(int var16 = 0; var16 < var15.length; ++var16) {
                        Object var17 = zyn.c(var15[var16], this.e.getSettings().getDate1904());
                        if (!(var17 instanceof Boolean)) {
                           var12[var14][var16] = var17;
                        } else if ((Boolean)var17) {
                           if (var6 != null) {
                              var12[var14][var16] = var6;
                           } else if (var10 != null && var10[var14] != null) {
                              var12[var14][var16] = var10[var14][var16];
                           }

                           if (var12[var14][var16] == null && var4) {
                              var12[var14][var16] = zml.g;
                           }
                        } else if (var7 != null) {
                           var12[var14][var16] = var7;
                        } else if (var11 != null && var11[var14] != null) {
                           var12[var14][var16] = var11[var14][var16];
                        }
                     }
                  }
               }

               return var12;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object an(zabd var1, Cell var2) {
      if (var1.d() != null && (var1.d().size() >= 2 || var1.d().size() <= 4)) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         if (var3 instanceof zst) {
            return var3;
         } else {
            Object var4 = 1.0D;
            if (var1.d().size() > 1) {
               zabd var5 = (zabd)var1.d().get(1);
               if (!var5.a()) {
                  var4 = this.b(var5, var2);
                  var4 = zyn.e(var4, this.e.getSettings().getDate1904());
                  if (var4 != null && var4 instanceof zst) {
                     return var4;
                  }
               } else {
                  var4 = 0.0D;
               }
            }

            Object var14 = 1.0D;
            if (var1.d().size() > 2) {
               zabd var6 = (zabd)var1.d().get(2);
               if (!var6.a()) {
                  var14 = this.b(var6, var2);
                  var14 = zyn.e(var14, this.e.getSettings().getDate1904());
                  if (var14 != null && var14 instanceof zst) {
                     return var14;
                  }
               }
            }

            if (var4 instanceof Double && var14 instanceof Double) {
               int var10;
               if (var3 instanceof zft) {
                  zft var16 = (zft)var3;
                  CellArea var18 = var16.d;
                  int var19 = (int)com.aspose.cells.a.c.zi.b(var4);
                  int var20 = (int)com.aspose.cells.a.c.zi.b(var14);
                  int var11;
                  if (var19 == 0) {
                     boolean var21 = false;
                     boolean var23 = false;
                     if (var20 != 0) {
                        --var20;
                        var11 = var10 = var18.StartColumn + var20;
                     } else {
                        var10 = var18.StartColumn;
                        var11 = var18.EndColumn;
                     }

                     if (var16.a != this.e.getWorksheets().u()) {
                        var18.StartColumn = var10;
                        var18.EndColumn = var11;
                        var16.d = var18;
                        return var16;
                     } else {
                        Cells var25 = this.e.getWorksheets().get(var16.b).getCells();
                        if (var18.StartRow == var18.EndRow) {
                           Cell var13 = var25.checkCell(var18.StartRow, var10);
                           return var13 != null ? this.a(var13) : null;
                        } else {
                           if (var1.c() != null) {
                              switch(u.a(var1.c().b())) {
                              case 32:
                              case 33:
                                 var18.StartColumn = var10;
                                 var18.EndColumn = var11;
                                 var16.d = var18;
                                 return var16;
                              }
                           }

                           return this.a(var1, var25.h(), var2, var18.StartRow, var18.EndRow, var10, var11, false, true);
                        }
                     }
                  } else if (var20 == 0) {
                     --var19;
                     var10 = var18.StartRow + var19;
                     if (var10 > var18.EndRow) {
                        return zst.g;
                     } else if (var18.StartColumn == var18.EndColumn) {
                        Cell var22 = this.e.getWorksheets().get(var16.b).getCells().getRows().a.a(var10, var18.StartColumn);
                        return var22 != null ? this.a(var22) : null;
                     } else {
                        if (var1.c() != null) {
                           switch(u.a(var1.c().b())) {
                           case 32:
                              var18.StartRow = var10;
                              var18.EndRow = var10;
                              var16.d = var18;
                              return var16;
                           }
                        }

                        return this.b(var1, this.e.getWorksheets().get(var16.b), var2, var10, var10, var18.StartColumn, var18.EndColumn, false);
                     }
                  } else {
                     --var19;
                     --var20;
                     if (var18.StartRow == var18.EndRow && var19 > 0) {
                        var20 = var19;
                        var19 = 0;
                     }

                     if (var18.StartRow + var19 <= var18.EndRow && var18.StartColumn + var20 <= var18.EndColumn) {
                        var10 = var18.StartRow + var19;
                        var11 = var18.StartColumn + var20;
                        if (var1.c() != null) {
                           String var12 = var1.c().b();
                           if ("()".equals(var12) && var1.c().c() != null) {
                              var12 = var1.c().c().b();
                           }

                           if (var12 != null) {
                              switch(u.a(var12)) {
                              case 23:
                                 return (double)var11 + 1.0D;
                              case 30:
                                 return (double)var10 + 1.0D;
                              case 32:
                              case 33:
                                 var18.StartRow = var18.EndRow = var10;
                                 var18.StartColumn = var18.EndColumn = var11;
                                 var16.d = var18;
                                 return var16;
                              }
                           }
                        }

                        Cell var24 = this.e.getWorksheets().get(var16.b).getCells().getRows().a.a(var10, var11);
                        return var24 != null ? this.a(var24) : null;
                     } else {
                        return zst.g;
                     }
                  }
               } else if (!com.aspose.cells.a.c.zc.a(var3)) {
                  return (int)com.aspose.cells.a.c.zi.b(var4) == 1 && (int)com.aspose.cells.a.c.zi.b(var14) == 1 ? var3 : zst.g;
               } else {
                  Object[] var15 = (Object[])((Object[])var3);
                  if (var15.length == 0) {
                     return zst.g;
                  } else {
                     int var7 = (int)com.aspose.cells.a.c.zi.b(var4);
                     Object[] var8;
                     if (var7 != 0) {
                        --var7;
                        if (var7 > var15.length - 1) {
                           if (var15.length == 1) {
                              var8 = (Object[])((Object[])var15[0]);
                              if (var7 < var8.length) {
                                 return var8[var7];
                              }
                           }

                           return zst.g;
                        } else {
                           Object var17 = var15[var7];
                           var15 = (Object[])((Object[])var17);
                           var7 = (int)com.aspose.cells.a.c.zi.b(var14);
                           if (var7 == 0) {
                              return var15.length == 1 ? var15[0] : new Object[]{var15};
                           } else {
                              --var7;
                              return var7 > var15.length - 1 ? zst.g : var15[var7];
                           }
                        }
                     } else {
                        var7 = (int)com.aspose.cells.a.c.zi.b(var14);
                        --var7;
                        if (var7 < 0) {
                           return var15;
                        } else {
                           var8 = (Object[])((Object[])var15[0]);
                           if (var7 > var8.length - 1) {
                              return zst.g;
                           } else if (var15.length == 1) {
                              return var8[var7];
                           } else {
                              Object[][] var9 = new Object[var15.length][];

                              for(var10 = 0; var10 < var15.length; ++var10) {
                                 var8 = (Object[])((Object[])var15[var10]);
                                 var9[var10] = new Object[]{var8[var7]};
                              }

                              return var9;
                           }
                        }
                     }
                  }
               }
            } else {
               return zst.i;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object ao(zabd var1, Cell var2) {
      if (var1.d().size() == 1) {
         return this.h(var1, var2, true);
      } else if (var1.d().size() == 2) {
         zabd var3 = (zabd)var1.d().get(1);
         Object var4 = this.b(var3, var2);
         switch(zamo.a(var4.getClass())) {
         case 3:
            return this.h(var1, var2, (Boolean)var4);
         case 14:
            double var5 = (Double)var4;
            if (Math.abs(var5) < Double.MIN_VALUE) {
               return this.h(var1, var2, false);
            }

            return this.h(var1, var2, true);
         default:
            return zst.g;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object h(zabd var1, Cell var2, boolean var3) {
      boolean var4 = var2 != null && var2.y();
      zabd var5 = (zabd)var1.d().get(0);
      Object var6 = this.b(var5, var2);
      if (var6 instanceof zst) {
         return var6;
      } else if (var6 instanceof String) {
         String var7 = ((String)var6).trim();
         if (!var3) {
            if (var7.indexOf(82) == -1 && var7.indexOf(67) == -1) {
               return zst.g;
            }

            var7 = zasp.b(var7, var2.getRow(), var2.getColumn());
         }

         int var10;
         int var12;
         int var13;
         boolean var16;
         boolean var17;
         boolean var18;
         boolean[] var30;
         String[] var43;
         byte var58;
         boolean var62;
         int var73;
         int var75;
         if (var7.indexOf("!") != -1) {
            var43 = com.aspose.cells.b.a.zv.d(var7, '!');
            if (var43[0] != null && !"".equals(var43[0])) {
               if (var43.length == 2) {
                  String var55 = var43[0];
                  if (var55.charAt(0) == '\'') {
                     var55 = var55.substring(1, 1 + (var55.length() - 2));
                  }

                  var10 = this.e.getWorksheets().b(var55);
                  if (var10 == -1) {
                     return zst.g;
                  }

                  Worksheet var53 = this.e.getWorksheets().get(var10);
                  var43[1] = var43[1].toUpperCase();
                  int var70;
                  int var72;
                  boolean var76;
                  boolean var79;
                  if (var43[1].indexOf(":") != -1) {
                     String[] var61 = com.aspose.cells.b.a.zv.d(var43[1], ':');
                     boolean var66 = false;
                     boolean var67 = false;
                     var62 = false;
                     var16 = false;
                     byte var71 = 0;
                     byte var74 = 0;
                     var76 = false;
                     var79 = false;
                     boolean var78 = false;
                     boolean var81 = false;
                     byte var83 = 0;
                     byte var85 = 0;
                     int[] var87 = new int[]{var71};
                     int[] var88 = new int[]{var74};
                     boolean[] var89 = new boolean[]{var66};
                     boolean[] var90 = new boolean[]{var67};
                     boolean[] var91 = new boolean[]{var62};
                     var30 = new boolean[]{var16};
                     boolean var92 = zcfd.a(var61[0], var87, var88, true, var89, var90, var91, var30);
                     var70 = var87[0];
                     var72 = var88[0];
                     var66 = var89[0];
                     var67 = var90[0];
                     var62 = var91[0];
                     var16 = var30[0];
                     int[] var93 = new int[]{var83};
                     int[] var94 = new int[]{var85};
                     boolean[] var95 = new boolean[]{var76};
                     boolean[] var96 = new boolean[]{var79};
                     boolean[] var97 = new boolean[]{var78};
                     boolean[] var37 = new boolean[]{var81};
                     boolean var38 = zcfd.a(var61[1], var93, var94, true, var95, var96, var97, var37);
                     int var84 = var93[0];
                     int var86 = var94[0];
                     var76 = var95[0];
                     var79 = var96[0];
                     var78 = var97[0];
                     var81 = var37[0];
                     if (var92 && var38) {
                        if (var62 == var78 && var16 == var81) {
                           if (var62) {
                              var72 = 0;
                           }

                           if (var78) {
                              var86 = var53.getCells().b((short)0);
                           }

                           if (var16) {
                              var70 = 0;
                           }

                           if (var81) {
                              var84 = this.b(var53.getIndex());
                           }

                           if (var2 == null) {
                              zft var39 = new zft();
                              var39.d = new CellArea();
                              var39.d.StartRow = var70;
                              var39.d.EndRow = var84;
                              var39.d.StartColumn = var72;
                              var39.d.EndColumn = var86;
                              var39.b = var53.getIndex();
                              return var39;
                           }

                           return this.b(var1, var53, var2, var70, var84, var72, var86, true);
                        }

                        return zst.g;
                     }

                     return zst.g;
                  }

                  int[] var64;
                  if (zcev.a(var43[1])) {
                     byte var59 = 0;
                     var58 = 0;
                     int[] var65 = new int[]{var59};
                     var64 = new int[]{var58};
                     CellsHelper.a(com.aspose.cells.b.a.zv.a(var43[1], "$", ""), var65, var64);
                     var12 = var65[0];
                     var13 = var64[0];
                     zft var69;
                     if (var1.c() != null) {
                        switch(u.a(var1.c().b())) {
                        case 23:
                           return (double)var13 + 1.0D;
                        case 24:
                           return 1.0D;
                        case 25:
                           return 1.0D;
                        case 26:
                        case 27:
                        case 28:
                        case 29:
                        case 31:
                        default:
                           break;
                        case 30:
                           return (double)var12 + 1.0D;
                        case 32:
                        case 33:
                           var69 = new zft();
                           var69.d = new CellArea();
                           var69.d.StartRow = var12;
                           var69.d.EndRow = var12;
                           var69.d.StartColumn = var13;
                           var69.d.EndColumn = var13;
                           var69.b = var53.getIndex();
                           return var69;
                        }
                     } else if (var2 == null) {
                        var69 = new zft();
                        var69.d = new CellArea();
                        var69.d.StartRow = var12;
                        var69.d.EndRow = var12;
                        var69.d.StartColumn = var13;
                        var69.d.EndColumn = var13;
                        var69.b = var53.getIndex();
                        return var69;
                     }

                     return this.a((zabd)null, var53, var2, var12, var13);
                  }

                  int[] var57 = this.e.getWorksheets().getNames().a(var10, var43[1], false, false);
                  var13 = var57[1];
                  if (var13 != -1) {
                     Name var63 = this.e.getWorksheets().getNames().get(var13);
                     var64 = var63.a(0, 0, false);
                     if (var64 != null) {
                        var16 = false;
                        var17 = false;
                        var18 = false;
                        var76 = false;
                        var79 = false;
                        int var68 = var64[0];
                        var70 = var64[1];
                        var73 = var64[2];
                        var72 = var64[3];
                        var75 = var64[4];
                        int var77 = this.e.getWorksheets().q().c(var68);
                        int var80 = this.e.getWorksheets().q().d(var68);
                        if (var1.c() != null) {
                           switch(u.a(var1.c().b())) {
                           case 23:
                              return (double)var73 + 1.0D;
                           case 24:
                              return (double)var75 - (double)var73 + 1.0D;
                           case 25:
                              return (double)var72 - (double)var70 + 1.0D;
                           case 26:
                           case 27:
                           case 28:
                           case 29:
                           case 31:
                           case 32:
                           default:
                              break;
                           case 30:
                              return (double)var70 + 1.0D;
                           case 33:
                              zft var82 = new zft();
                              var82.d = new CellArea();
                              var82.d.StartRow = var70;
                              var82.d.EndRow = var72;
                              var82.d.StartColumn = var73;
                              var82.d.EndColumn = var75;
                              var82.b = var80;
                              return var82;
                           }
                        }

                        if (var70 == var72 && var73 == var75) {
                           if (var77 == this.e.getWorksheets().u()) {
                              return this.a(var1, this.e.getWorksheets().get(var80), var2, var70, var73);
                           }

                           return zup.a(this.e.getWorksheets(), var77, var80, var70, var73);
                        }

                        if (var77 == this.e.getWorksheets().u()) {
                           return this.a(var1, this.e.getWorksheets().get(var80), var2, var70, var72, var73, var75, var4, true);
                        }

                        return zup.a(var1, var77, this.e.getWorksheets(), var80, var70, var73, var72, var75, this.l, (String)null);
                     }
                  }
               }

               return zst.g;
            } else {
               return zst.g;
            }
         } else {
            int var14;
            boolean var42;
            if (var7.indexOf(58) != -1) {
               var43 = com.aspose.cells.b.a.zv.d(var7, ':');
               var42 = false;
               boolean var51 = false;
               boolean var47 = false;
               boolean var54 = false;
               var58 = 0;
               byte var60 = 0;
               var62 = false;
               var16 = false;
               var17 = false;
               var18 = false;
               byte var19 = 0;
               byte var20 = 0;
               int[] var21 = new int[]{var58};
               int[] var22 = new int[]{var60};
               boolean[] var23 = new boolean[]{var42};
               boolean[] var24 = new boolean[]{var51};
               boolean[] var25 = new boolean[]{var47};
               boolean[] var26 = new boolean[]{var54};
               boolean var27 = zcfd.a(var43[0], var21, var22, true, var23, var24, var25, var26);
               var13 = var21[0];
               var14 = var22[0];
               var42 = var23[0];
               var51 = var24[0];
               var47 = var25[0];
               var54 = var26[0];
               int[] var28 = new int[]{var19};
               int[] var29 = new int[]{var20};
               var30 = new boolean[]{var62};
               boolean[] var31 = new boolean[]{var16};
               boolean[] var32 = new boolean[]{var17};
               boolean[] var33 = new boolean[]{var18};
               boolean var34 = zcfd.a(var43[1], var28, var29, true, var30, var31, var32, var33);
               var73 = var28[0];
               var75 = var29[0];
               var62 = var30[0];
               var16 = var31[0];
               var17 = var32[0];
               var18 = var33[0];
               Worksheet var35 = var2 != null ? var2.d.h() : null;
               if (var27 && var34) {
                  if (var47 == var17 && var54 == var18) {
                     if (var47) {
                        var14 = 0;
                     }

                     if (var17) {
                        if (var35 == null) {
                           var75 = 16383;
                        } else {
                           var75 = var35.getCells().b((short)0);
                        }
                     }

                     if (var54) {
                        var13 = 0;
                     }

                     if (var18) {
                        if (var35 == null) {
                           var73 = 1048575;
                        } else {
                           var73 = this.b(var35.getIndex());
                        }
                     }

                     if (var2 == null) {
                        zft var36 = new zft();
                        var36.d = new CellArea();
                        var36.d.StartRow = var13;
                        var36.d.EndRow = var73;
                        var36.d.StartColumn = var14;
                        var36.d.EndColumn = var75;
                        var36.b = this.e.getWorksheets().getActiveSheetIndex();
                        return var36;
                     } else {
                        return this.b(var1, var35, var2, var13, var73, var14, var75, true);
                     }
                  } else {
                     return zst.g;
                  }
               } else {
                  return zst.g;
               }
            } else if (zcev.a(var7)) {
               byte var40 = 0;
               byte var48 = 0;
               int[] var49 = new int[]{var40};
               int[] var46 = new int[]{var48};
               CellsHelper.a(com.aspose.cells.b.a.zv.a(var7, "$", ""), var49, var46);
               int var41 = var49[0];
               int var50 = var46[0];

               zabd var52;
               for(var52 = var1.c(); var52 != null && "()".equals(var52.b()); var52 = var52.c()) {
                  ;
               }

               zft var56;
               if (var52 != null) {
                  switch(u.a(var52.b())) {
                  case 23:
                     return (double)var50 + 1.0D;
                  case 30:
                     return (double)var41 + 1.0D;
                  case 33:
                     var56 = new zft();
                     var56.d = new CellArea();
                     var56.d.StartRow = var41;
                     var56.d.EndRow = var41;
                     var56.d.StartColumn = var50;
                     var56.d.EndColumn = var50;
                     var56.b = var2.d.h().getIndex();
                     return var56;
                  default:
                     return this.a((zabd)null, var2.d.h(), var2, var41, var50);
                  }
               } else if (var2 == null) {
                  var56 = new zft();
                  var56.d = new CellArea();
                  var56.d.StartRow = var41;
                  var56.d.EndRow = var41;
                  var56.d.StartColumn = var50;
                  var56.d.EndColumn = var50;
                  var56.b = this.e.getWorksheets().getActiveSheetIndex();
                  return var56;
               } else {
                  return this.a((zabd)null, var2.d.h(), var2, var41, var50);
               }
            } else {
               Range var8 = this.e.getWorksheets().b(var7, true);
               if (var8 == null && var7.endsWith("]")) {
                  int[] var9 = zbsg.b(this.e.getWorksheets(), var2 == null ? var2.d.h().getIndex() : 0, var2 == null ? var2.getRow() : 0, var2 == null ? var2.getColumn() : 0, var7, false);
                  var10 = var9[0];
                  int var11 = var9[1];
                  var12 = var9[2];
                  var13 = var9[3];
                  var14 = var9[4];
                  int var15 = this.e.getWorksheets().q().d(var10);
                  if (var15 >= 0 && var15 < this.e.getWorksheets().getCount()) {
                     var8 = new Range(var11, var12, var13 - var11 + 1, var14 - var12 + 1, this.e.getWorksheets().get(var15).getCells());
                  }
               }

               if (var8 == null) {
                  return zst.g;
               } else {
                  var42 = false;
                  if (!var4) {
                     zft var44;
                     if (var2 == null) {
                        var44 = new zft();
                        var44.d = var8.a();
                        var44.b = var8.getWorksheet().getIndex();
                        return var44;
                     }

                     if (var1.c() != null && var1.c().b() != null) {
                        switch(u.a(var1.c().b())) {
                        case 23:
                           return (double)(var8.getFirstColumn() + 1);
                        case 24:
                           return (double)var8.getColumnCount();
                        case 25:
                           return (double)var8.getRowCount();
                        case 26:
                        case 27:
                        case 28:
                        case 29:
                        case 31:
                        case 34:
                        case 35:
                        case 36:
                        case 37:
                        case 38:
                        case 39:
                        case 44:
                        default:
                           var42 = zfm.a(var1, true);
                           break;
                        case 30:
                           return (double)(var8.getFirstRow() + 1);
                        case 32:
                        case 33:
                           var44 = new zft();
                           var44.d = var8.a();
                           var44.b = var8.getWorksheet().getIndex();
                           return var44;
                        case 40:
                        case 41:
                        case 42:
                           break;
                        case 43:
                           if (var1.c().d().get(1) != var1) {
                              var42 = true;
                           }
                           break;
                        case 45:
                           if (var1.c().d().get(0) == var1) {
                              var44 = new zft();
                              var44.d = var8.a();
                              var44.b = var8.getWorksheet().getIndex();
                              return var44;
                           }

                           var42 = true;
                        }
                     } else {
                        var42 = true;
                     }
                  }

                  Cell var45;
                  if (var8.b != null && var8.b instanceof ListObject && ((ListObject)var8.b).getShowHeaderRow()) {
                     if (var42) {
                        var45 = var8.get(1, 0);
                        return this.a((zabd)null, var45.d.h(), var2, var45.getRow(), var45.getColumn());
                     } else {
                        return this.a(var1, var8.getWorksheet(), var2, var8.getFirstRow() + 1, var8.getFirstRow() + var8.getRowCount() - 2, var8.getFirstColumn(), var8.getFirstColumn() + var8.getColumnCount() - 1);
                     }
                  } else if (var42) {
                     var45 = var8.get(0, 0);
                     return this.a((zabd)null, var45.d.h(), var2, var45.getRow(), var45.getColumn());
                  } else {
                     return this.a(var1, var8.getWorksheet(), var2, var8.getFirstRow(), var8.getFirstRow() + var8.getRowCount() - 1, var8.getFirstColumn(), var8.getFirstColumn() + var8.getColumnCount() - 1);
                  }
               }
            }
         }
      } else {
         return zst.g;
      }
   }

   private Object ap(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      return zyn.d(var4, this.e.getSettings().getDate1904());
   }

   private Object aq(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      Object var4 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var4 instanceof Double) {
         double var5 = (Double)var4;
         var4 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var7 = (Double)var4;
            var4 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
            if (var4 instanceof Double) {
               double var9 = (Double)var4;
               if (var7 >= 1.0D && var7 <= var9) {
                  var4 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                  if (var4 instanceof Double) {
                     double var11 = (Double)var4;
                     double var13 = 0.0D;
                     double var15 = 0.0D;
                     if (var3 > 4) {
                        var4 = zyn.e(this.b((zabd)var1.d().get(4), var2), this.e.getSettings().getDate1904());
                        if (!(var4 instanceof Double)) {
                           return var4;
                        }

                        var13 = (Double)var4;
                        if (var3 > 5) {
                           var4 = zyn.e(this.b((zabd)var1.d().get(5), var2), this.e.getSettings().getDate1904());
                           if (!(var4 instanceof Double)) {
                              return var4;
                           }

                           var15 = (Double)var4;
                        }
                     }

                     return var15 < 0.0D ? zst.f : zvp.b(var5, var7, var9, var11, var13, var15);
                  } else {
                     return var4;
                  }
               } else {
                  return zst.f;
               }
            } else {
               return var4;
            }
         } else {
            return var4;
         }
      } else {
         return var4;
      }
   }

   private Object ar(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (!com.aspose.cells.a.c.zc.a(var4)) {
         if (var4 instanceof zst) {
            return var4;
         } else {
            if (var4 instanceof Double) {
               if (var1.d().size() <= 1) {
                  return zst.f;
               }

               var3 = (zabd)var1.d().get(1);
               var4 = this.b(var3, var2);
               if (var4 instanceof Double) {
                  if ((Double)var4 + 1.0D <= Double.MIN_VALUE) {
                     return zst.i;
                  }

                  return zst.f;
               }

               if (var4 instanceof zst) {
                  return var4;
               }
            }

            return zst.i;
         }
      } else {
         Object[] var5 = (Object[])((Object[])var4);
         Object var6 = com.aspose.cells.b.a.za.a((Object[])var5, 0);
         double var7 = 0.0D;
         if (com.aspose.cells.a.c.zc.a(var6)) {
            Object var9 = zyn.e(com.aspose.cells.b.a.za.a((Object[])((Object[])((Object[])var6)), 0), this.e.getSettings().getDate1904());
            if (!(var9 instanceof Double)) {
               return var9;
            } else {
               var7 = (Double)var9;
               ArrayList var14 = new ArrayList();
               int var10;
               if (var5.length > 1) {
                  for(var10 = 1; var10 < var5.length; ++var10) {
                     var6 = com.aspose.cells.b.a.za.a(var5, var10);
                     if (com.aspose.cells.a.c.zc.a(var6)) {
                        Object var11 = com.aspose.cells.b.a.za.a((Object[])((Object[])((Object[])var6)), 0);
                        if (var11 != null) {
                           if (var11 instanceof zst) {
                              return var11;
                           }

                           switch(zamo.a(var11.getClass())) {
                           case 14:
                              com.aspose.cells.b.a.a.ze.a(var14, var11);
                              break;
                           case 16:
                              com.aspose.cells.b.a.a.ze.a(var14, (Object)CellsHelper.getDoubleFromDateTime((DateTime)var11, this.e.getSettings().getDate1904()));
                           }
                        }
                     }
                  }
               } else {
                  var5 = (Object[])((Object[])com.aspose.cells.b.a.za.a((Object[])var5, 0));

                  for(var10 = 1; var10 < var5.length; ++var10) {
                     var6 = com.aspose.cells.b.a.za.a(var5, var10);
                     if (var6 != null) {
                        var6 = zyn.e(var6, this.e.getSettings().getDate1904());
                        if (!(var6 instanceof Double)) {
                           return var6;
                        }

                        com.aspose.cells.b.a.a.ze.a(var14, var6);
                     }
                  }
               }

               if (var14.size() < 1) {
                  return zst.f;
               } else {
                  double[] var15 = com.aspose.cells.a.c.zc.b(com.aspose.cells.b.a.a.ze.a(var14, Double.TYPE));
                  double var16 = 0.1D;
                  if (var1.d().size() > 1) {
                     var3 = (zabd)var1.d().get(1);
                     var4 = this.b(var3, var2);
                     if (var4 instanceof Double) {
                        var16 = (Double)var4;
                     }
                  }

                  zahm var13 = new zahm();
                  return var13.a(var7, var15, var16);
               }
            }
         } else {
            return zst.f;
         }
      }
   }

   private Object as(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 instanceof zst) {
         switch(null.a[((zst)var4).ordinal()]) {
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
            return true;
         }
      } else if (com.aspose.cells.a.c.zc.a(var4)) {
         Object[] var5 = (Object[])((Object[])var4);
         Object var6 = com.aspose.cells.b.a.za.a((Object[])var5, 0);
         Object[][] var7 = new Object[var5.length][];
         if (com.aspose.cells.a.c.zc.a(var6)) {
            Object[] var8 = (Object[])((Object[])var6);
            int var9 = var8.length;

            for(int var10 = 0; var10 < var5.length; ++var10) {
               var7[var10] = new Object[var9];
               var6 = com.aspose.cells.b.a.za.a(var5, var10);
               if (var6 == null) {
                  for(int var15 = 0; var15 < var9; ++var15) {
                     var7[var10][var15] = false;
                  }
               } else {
                  Object[] var11 = (Object[])((Object[])var6);

                  for(int var12 = 0; var12 < var11.length; ++var12) {
                     Object var13 = com.aspose.cells.b.a.za.a(var11, var12);
                     if (var13 instanceof zst) {
                        switch(null.a[((zst)var13).ordinal()]) {
                        case 1:
                        case 2:
                        case 3:
                        case 4:
                        case 5:
                        case 6:
                        case 7:
                           var7[var10][var12] = true;
                           break;
                        default:
                           var7[var10][var12] = false;
                        }
                     } else {
                        var7[var10][var12] = false;
                     }
                  }
               }
            }
         } else {
            for(int var14 = 0; var14 < var5.length; ++var14) {
               var7[var14] = new Object[1];
               var6 = com.aspose.cells.b.a.za.a(var5, var14);
               if (var6 instanceof zst) {
                  switch(null.a[((zst)var6).ordinal()]) {
                  case 1:
                  case 2:
                  case 3:
                  case 4:
                  case 5:
                  case 6:
                  case 7:
                     var7[var14][0] = true;
                     break;
                  default:
                     var7[var14][0] = false;
                  }
               } else {
                  var7[var14][0] = false;
               }
            }
         }

         return var7;
      }

      return false;
   }

   private Object i(zabd var1, Cell var2, boolean var3) {
      zabd var4 = (zabd)var1.d().get(0);
      Object var5 = this.b(var4, var2);
      if (var3) {
         if (var5 instanceof zst && (zst)var5 == zst.c) {
            var4 = (zabd)var1.d().get(1);
            return this.b(var4, var2);
         } else {
            return var5;
         }
      } else {
         if (var5 instanceof zst) {
            switch(null.a[((zst)var5).ordinal()]) {
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
               var4 = (zabd)var1.d().get(1);
               return this.b(var4, var2);
            }
         }

         return var5;
      }
   }

   private Object at(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (!(var4 instanceof Object[][])) {
         return zami.a(var4);
      } else {
         Object[][] var5 = (Object[][])((Object[][])var4);
         int var6 = var5[0].length;
         Object[][] var7 = new Object[var5.length][];

         for(int var8 = 0; var8 < var5.length; ++var8) {
            var7[var8] = new Object[var6];
            int var9;
            if (var5[var8] == null) {
               for(var9 = 0; var9 < var6; ++var9) {
                  var7[var8][var9] = zml.e;
               }
            } else {
               for(var9 = 0; var9 < var6; ++var9) {
                  var7[var8][var9] = zami.a(var5[var8][var9]);
               }
            }
         }

         return var7;
      }
   }

   private Object au(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      return var4 instanceof zst ? (zst)var4 == zst.c : false;
   }

   private Object av(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return false;
      } else if (com.aspose.cells.a.c.zc.a(var4)) {
         return zba.a(var4);
      } else {
         switch(zamo.a(var4.getClass())) {
         case 14:
         case 16:
            return true;
         default:
            return false;
         }
      }
   }

   private Object aw(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      switch(var3.f()[0]) {
      case 17:
         return this.b(var3, var2);
      case 21:
         return var3.d().size();
      default:
         return 1.0D;
      }
   }

   private Object ax(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      switch(u.a(var1.b())) {
      case 36:
         return zami.b(var4);
      case 159:
         return zami.c(var4);
      case 214:
         return zami.c(var4, this.e.getSettings().getDate1904());
      case 222:
         return zami.d(var4);
      case 223:
         return var4 != null && var4 instanceof Boolean;
      case 225:
         return zami.b(var4, this.e.getSettings().getDate1904());
      case 228:
         return zami.e(var4);
      case 254:
         return zami.a(var4, this.e.getSettings().getDate1904());
      default:
         return null;
      }
   }

   private Object ay(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4;
      if (var3.f() != null && var3.f().length != 0) {
         switch(var3.f()[0]) {
         case 22:
         case 23:
         case 28:
         case 29:
         case 30:
         case 31:
         case 32:
         case 64:
         case 96:
            return false;
         case 24:
         case 25:
         case 26:
         case 27:
         case 33:
         case 34:
         case 38:
         case 39:
         case 40:
         case 41:
         case 42:
         case 43:
         case 46:
         case 47:
         case 48:
         case 49:
         case 50:
         case 51:
         case 52:
         case 53:
         case 54:
         case 55:
         case 56:
         case 57:
         case 60:
         case 61:
         case 62:
         case 63:
         case 65:
         case 66:
         case 70:
         case 71:
         case 72:
         case 73:
         case 74:
         case 75:
         case 78:
         case 79:
         case 80:
         case 81:
         case 82:
         case 83:
         case 84:
         case 85:
         case 86:
         case 87:
         case 88:
         case 89:
         case 92:
         case 93:
         case 94:
         case 95:
         case 97:
         case 98:
         case 102:
         case 103:
         case 104:
         case 105:
         case 106:
         case 107:
         case 110:
         case 111:
         case 112:
         case 113:
         case 114:
         case 115:
         case 116:
         case 117:
         case 118:
         case 119:
         case 120:
         case 121:
         default:
            var4 = this.b(var3, var2);
            if (var4 == null) {
               return false;
            } else {
               if (var4 instanceof CellArea) {
                  return true;
               }

               return false;
            }
         case 35:
         case 67:
         case 99:
            if (this.e.getWorksheets().getNames().getCount() == 0) {
               return false;
            } else {
               int var7 = com.aspose.cells.b.a.zc.e(var3.f(), 1);
               Name var5 = this.e.getWorksheets().getNames().get((var7 & '\uffff') - 1);
               int[] var6 = var5.a(0, 0, false);
               if (var6 != null) {
                  return true;
               }

               return false;
            }
         case 36:
         case 37:
         case 44:
         case 45:
         case 58:
         case 59:
         case 68:
         case 69:
         case 76:
         case 77:
         case 90:
         case 91:
         case 100:
         case 101:
         case 108:
         case 109:
         case 122:
         case 123:
            return true;
         }
      } else {
         var4 = this.b(var3, var2);
         if (var4 == null) {
            return false;
         } else if (var4 instanceof String) {
            return "INDEX".equals(var3.b()) ? true : false;
         } else if (var4 instanceof CellArea) {
            return true;
         } else {
            return "INDEX".equals(var3.b()) ? true : false;
         }
      }
   }

   private Object az(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return true;
      } else if (!(var4 instanceof Object[][])) {
         return false;
      } else {
         Object[][] var5 = (Object[][])((Object[][])var4);
         Object[][] var6 = new Object[var5.length][];
         int var7 = var5[0].length;

         for(int var8 = 0; var8 < var5.length; ++var8) {
            var6[var8] = new Object[var7];

            for(int var9 = 0; var9 < var7; ++var9) {
               var6[var8][var9] = var5[var8] == null || var5[var8][var9] == null;
            }
         }

         return var6;
      }
   }

   private Object aA(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return 0.0D;
      } else if (var4 instanceof zst) {
         return var4;
      } else {
         switch(zamo.a(var4.getClass())) {
         case 18:
            String var5 = (String)var4;
            zhb var6 = this.e.getSettings().e().i();
            Object var7 = var6.parseObject(var5);
            if (var7 != null) {
               double var8 = CellsHelper.getDoubleFromDateTime((DateTime)var7, this.e.getSettings().getDate1904());
               if (var8 < 0.0D) {
                  return zst.i;
               }

               return var8;
            }

            return zst.i;
         default:
            return zst.i;
         }
      }
   }

   private Object aB(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return 0.0D;
      } else if (var4 instanceof zst) {
         return var4;
      } else {
         switch(zamo.a(var4.getClass())) {
         case 18:
            String var5 = (String)var4;

            try {
               DateTime var6 = DateTime.a(var5);
               double var7 = CellsHelper.getDoubleFromDateTime(var6, this.e.getSettings().getDate1904());
               if (var7 <= 0.0D) {
                  return zst.i;
               }

               return var7 - (double)((int)var7);
            } catch (Exception var9) {
               return zst.i;
            }
         default:
            return zst.i;
         }
      }
   }

   private Object aC(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      if (var2 != null && var2.d.h().n() && var3 instanceof String) {
         var3 = 0.0D;
      }

      var3 = zyn.e(var3, this.e.getSettings().getDate1904());
      if (var3 instanceof Double) {
         double var4 = (Double)var3;
         Object var8 = this.b((zabd)var1.d().get(1), var2);
         if (var2 != null && var2.d.h().n() && var8 instanceof String) {
            var8 = 0.0D;
         }

         var8 = zyn.e(var8, this.e.getSettings().getDate1904());
         if (var8 instanceof Double) {
            double var6 = (Double)var8;
            Object var9 = this.b((zabd)var1.d().get(2), var2);
            if (var9 == null) {
               return zst.f;
            } else {
               return var9 instanceof String ? zqq.a(var4, var6, (String)var9, this.e.getSettings().getDate1904()) : zst.f;
            }
         } else {
            return var8;
         }
      } else {
         return var3;
      }
   }

   private Object aD(zabd var1, Cell var2) {
      Object[] var3 = new Object[3];

      for(int var4 = 0; var4 < 3; ++var4) {
         zabd var5 = (zabd)var1.d().get(var4);
         var3[var4] = this.b(var5, var2);
         if (var3[var4] == null) {
            var3[var4] = 0.0D;
         } else if (var3[var4] instanceof zst) {
            return var3[var4];
         }
      }

      if (var2 != null && var2.y() && var3[0] instanceof Object[][] && var3[1] instanceof Object[][] && var3[2] instanceof Object[][]) {
         return zqq.a(var3, this.e);
      } else {
         return zqq.b(var3, this.e);
      }
   }

   private Object aE(zabd var1, Cell var2) {
      Object var3 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var3 instanceof Double) {
         double var4 = (Double)var3;
         Object var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
         if (var8 instanceof Double) {
            double var6 = (Double)var8;
            boolean var9 = false;
            if (var1.d().size() > 2) {
               Object var10 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (!(var10 instanceof Double)) {
                  return var10;
               }

               if ((Double)var10 != 0.0D) {
                  var9 = true;
               }
            }

            return zbtm.a(var4, var6, var9, this.e.getSettings().getDate1904());
         } else {
            return var8;
         }
      } else {
         return var3;
      }
   }

   private Object aF(zabd var1, Cell var2) {
      int var3 = 2;
      Object var4 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var4 instanceof zst) {
         return var4;
      } else {
         double var5 = (Double)var4;
         if (var1.d().size() == 2) {
            var4 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var4 instanceof zst) {
               return var4;
            }

            var3 = (int)com.aspose.cells.a.c.zi.b(var4);
         }

         if (var3 > 127) {
            return zst.i;
         } else {
            boolean var7 = false;
            if (var5 < 0.0D) {
               var7 = true;
               var5 = Math.abs(var5);
            }

            if (var3 >= 0) {
               String var8;
               if (var3 == 0) {
                  var8 = "#,##0";
               } else {
                  var8 = "#,##0." + com.aspose.cells.b.a.zv.a('0', var3);
               }

               return var7 ? "($" + com.aspose.cells.b.a.zn.a(var5, var8) + ")" : "$" + com.aspose.cells.b.a.zn.a(var5, var8);
            } else {
               var5 = (double)((int)(var5 / Math.pow(10.0D, (double)(-var3)) + 0.5D)) * Math.pow(10.0D, (double)(-var3));
               return var7 ? "($" + com.aspose.cells.b.a.zn.b(var5) + ")" : "$" + com.aspose.cells.b.a.zn.b(var5);
            }
         }
      }
   }

   private double[][] aG(zabd var1, Cell var2) {
      Object var4 = this.b(var1, var2);
      if (var4 == null) {
         return (double[][])null;
      } else if (var4 instanceof Object[]) {
         double[][] var3 = zyn.a(var4, this.e.getSettings().getDate1904());
         return var3;
      } else {
         return (double[][])null;
      }
   }

   private double[] aH(zabd var1, Cell var2) {
      Object var3 = this.b(var1, var2);
      if (var3 == null) {
         return null;
      } else {
         var3 = zyn.a(var3, var2, this.e.getSettings().getDate1904(), true);
         return var3 instanceof double[] ? (double[])((double[])var3) : null;
      }
   }

   private Object aI(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      double[][] var4 = this.aG(var3, var2);
      return var4 == null ? null : zyn.a(zana.c(var4));
   }

   private Object e(zabd var1, Cell var2, int var3) {
      ArrayList var4 = new ArrayList();

      Object var7;
      for(int var5 = 0; var5 < var3; ++var5) {
         zabd var6 = (zabd)var1.d().get(var5);
         var7 = this.b(var6, var2);
         if (var7 != null) {
            var7 = zyn.a(var4, var7, var2, this.e.getSettings().getDate1904());
            if (var7 != null && var7 instanceof zst) {
               return var7;
            }
         }
      }

      double[] var11 = new double[var4.size()];

      int var12;
      for(var12 = 0; var12 < var11.length; ++var12) {
         var11[var12] = (Double)var4.get(var12);
      }

      switch(u.a(var1.b())) {
      case 181:
         return zamz.c(var11);
      case 231:
         return zamz.b(var11);
      case 251:
         var12 = var4.size();
         if (var12 == 0) {
            return zst.f;
         } else {
            Collections.sort(var4);
            if (var12 % 2 == 0) {
               double var14 = (Double)var4.get(var12 / 2 - 1);
               double var9 = (Double)var4.get(var12 / 2);
               return (var14 + var9) / 2.0D;
            }

            return var4.get(var12 / 2);
         }
      case 276:
         Object var13 = this.H((zabd)var1.d().get(1), var2);
         if (var13 instanceof zst) {
            return var13;
         } else {
            if (var1.d().size() >= 3) {
               var7 = this.H((zabd)var1.d().get(2), var2);
               if (var7 instanceof zst) {
                  return var7;
               }

               return zbop.a(var11, (Double)var13, (Double)var7);
            }

            return zbop.b(var11, (Double)var13);
         }
      default:
         return zst.d;
      }
   }

   private Object aJ(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return zst.i;
      } else {
         zabd var5 = (zabd)var1.d().get(1);
         Object var6 = this.b(var5, var2);
         if (var6 == null) {
            return zst.i;
         } else if (var4 instanceof Object[]) {
            if (var6 instanceof Object[]) {
               Object[] var7 = (Object[])((Object[])var4);
               Object[] var8 = (Object[])((Object[])var6);
               if (zba.b(var7, var8)) {
                  ArrayList var9 = new ArrayList();
                  ArrayList var10 = new ArrayList();
                  Object var11 = zba.a(this.e, var7, var8, var9, var10);
                  if (var11 != null) {
                     return var11;
                  } else {
                     return var9.size() < 2 ? zst.a : zana.a(var9, var10);
                  }
               } else {
                  return zst.c;
               }
            } else {
               return zst.c;
            }
         } else {
            var4 = zyn.e(var4, this.e.getSettings().getDate1904());
            if (var4 instanceof zst) {
               return var4;
            } else if (var6 instanceof Object[]) {
               return zst.c;
            } else {
               var6 = zyn.e(var6, this.e.getSettings().getDate1904());
               return var6 instanceof zst ? var6 : zst.a;
            }
         }
      }
   }

   private Object aK(zabd var1, Cell var2) {
      zabd var5 = (zabd)var1.d().get(0);
      double[] var3 = this.aH(var5, var2);
      if (var3 == null) {
         return null;
      } else {
         zabd var6 = (zabd)var1.d().get(1);
         double[] var4 = this.aH(var6, var2);
         if (var4 == null) {
            return null;
         } else {
            return var3.length != var4.length ? zst.c : zana.b(var3, var4);
         }
      }
   }

   private Object aL(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      Object var4 = this.b((zabd)var1.d().get(1), var2);
      return zbor.a(var3, var4, this.e.getSettings(), this.c);
   }

   private Object aM(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      Object var4 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var4 instanceof Double) {
         double var5 = (Double)var4;
         var4 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var7 = (Double)var4;
            var4 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
            if (var4 instanceof Double) {
               double var9 = (Double)var4;
               if (var7 >= 1.0D && var7 <= var9) {
                  var4 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                  if (var4 instanceof Double) {
                     double var11 = (Double)var4;
                     double var13 = 0.0D;
                     double var15 = 0.0D;
                     if (var3 > 4) {
                        var4 = zyn.e(this.b((zabd)var1.d().get(4), var2), this.e.getSettings().getDate1904());
                        if (!(var4 instanceof Double)) {
                           return var4;
                        }

                        var13 = (Double)var4;
                        if (var3 > 5) {
                           var4 = zyn.e(this.b((zabd)var1.d().get(5), var2), this.e.getSettings().getDate1904());
                           if (!(var4 instanceof Double)) {
                              return var4;
                           }

                           var15 = (Double)var4;
                           if (var15 != 0.0D) {
                              var15 = 1.0D;
                           }
                        }
                     }

                     return zvp.a(var5, var7, var9, var11, var13, var15);
                  } else {
                     return var4;
                  }
               } else {
                  return zst.f;
               }
            } else {
               return var4;
            }
         } else {
            return var4;
         }
      } else {
         return var4;
      }
   }

   private Object aN(zabd var1, Cell var2) {
      double var3 = 1.0D;
      boolean var7 = true;

      for(int var8 = 0; var8 < var1.d().size(); ++var8) {
         zabd var9 = (zabd)var1.d().get(var8);
         Object var10 = this.b(var9, var2);
         if (var10 != null) {
            if (var10 instanceof zst) {
               return var10;
            }

            double var5;
            switch(zamo.a(var10.getClass())) {
            case 1:
               if (!com.aspose.cells.a.c.zc.a(var10)) {
                  break;
               }

               Object[] var11 = (Object[])((Object[])var10);
               int var12 = 0;

               for(; var12 < var11.length; ++var12) {
                  Object[] var13 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var11, var12));
                  if (var13 != null) {
                     for(int var14 = 0; var14 < var13.length; ++var14) {
                        var10 = com.aspose.cells.b.a.za.a(var13, var14);
                        if (var10 != null) {
                           if (var10 instanceof zst) {
                              return var10;
                           }

                           switch(zamo.a(var10.getClass())) {
                           case 14:
                              var5 = (Double)var10;
                              if (var5 == 0.0D) {
                                 return 0.0D;
                              }

                              var3 *= var5;
                              if (var7) {
                                 var7 = false;
                              }
                              break;
                           case 16:
                              var5 = CellsHelper.getDoubleFromDateTime((DateTime)var10, this.e.getSettings().getDate1904());
                              if (var5 == 0.0D) {
                                 return 0.0D;
                              }

                              var3 *= var5;
                              if (var7) {
                                 var7 = false;
                              }
                           }
                        }
                     }
                  }
               }
               break;
            case 14:
               var5 = (Double)var10;
               if (var5 == 0.0D) {
                  return 0.0D;
               }

               var3 *= var5;
               if (var7) {
                  var7 = false;
               }
               break;
            case 16:
               var5 = CellsHelper.getDoubleFromDateTime((DateTime)var10, this.e.getSettings().getDate1904());
               if (var5 == 0.0D) {
                  return 0.0D;
               }

               var3 *= var5;
               if (var7) {
                  var7 = false;
               }
               break;
            case 18:
               if (var9.f()[0] == 23) {
                  if (!zapb.d((String)var10)) {
                     return zst.i;
                  }

                  try {
                     var3 *= com.aspose.cells.b.a.zn.a((String)var10);
                     if (var7) {
                        var7 = false;
                     }
                  } catch (Exception var15) {
                     return zst.i;
                  }
               }
            }
         }
      }

      if (var7) {
         return 0.0D;
      } else {
         return var3;
      }
   }

   private Object aO(zabd var1, Cell var2) {
      zabd var5 = (zabd)var1.d().get(0);
      double[] var3 = this.aH(var5, var2);
      if (var3 == null) {
         return null;
      } else {
         zabd var6 = (zabd)var1.d().get(1);
         double[] var4 = this.aH(var6, var2);
         if (var4 == null) {
            return null;
         } else if (var3.length != var4.length) {
            return zst.c;
         } else {
            Object var7 = zana.b(var3, var4);
            return var7 instanceof zst ? var7 : (Double)var7 * (Double)var7;
         }
      }
   }

   private Object aP(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      Object var4 = this.b((zabd)var1.d().get(1), var2);
      return zbor.b(var3, var4, this.e.getSettings(), this.c);
   }

   private Object aQ(zabd var1, Cell var2) {
      if (var1.d() != null && (var1.d().size() == 2 || var1.d().size() == 3)) {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         zabd var5 = (zabd)var1.d().get(1);
         Object var6 = this.b(var5, var2);
         if (!(var6 instanceof Object[][])) {
            return zst.f;
         } else {
            Object[][] var7 = (Object[][])((Object[][])var6);
            if (!(var4 instanceof Double)) {
               return zst.i;
            } else {
               Object[] var8 = var7[0];
               ArrayList var9 = new ArrayList();

               for(int var10 = 0; var10 < var7.length; ++var10) {
                  if (var7[var10] != null) {
                     for(int var11 = 0; var11 < var8.length; ++var11) {
                        Object var12 = var7[var10][var11];
                        if (var12 instanceof Double) {
                           com.aspose.cells.b.a.a.ze.a(var9, var12);
                        }
                     }
                  }
               }

               Collections.sort(var9);
               double var18 = (Double)var4;

               for(int var19 = 0; var19 < var9.size(); ++var19) {
                  double var13 = (Double)var9.get(var19);
                  if (var13 == var18) {
                     if (var1.d().size() == 3) {
                        zabd var15 = (zabd)var1.d().get(2);
                        Object var16 = this.b(var15, var2);
                        if (var16 instanceof Double) {
                           int var17 = (int)com.aspose.cells.a.c.zi.b(var16);
                           if (var17 != 0) {
                              return (double)(var19 + 1);
                           }

                           ++var19;

                           while(var19 < var9.size()) {
                              var13 = (Double)var9.get(var19);
                              if (var13 != var18) {
                                 break;
                              }

                              ++var19;
                           }

                           return (double)(var9.size() - var19 + 1);
                        }

                        if (var16 != null) {
                           return zst.i;
                        }
                     }

                     ++var19;

                     while(var19 < var9.size()) {
                        var13 = (Double)var9.get(var19);
                        if (var13 != var18) {
                           break;
                        }

                        ++var19;
                     }

                     return (double)(var9.size() - var19 + 1);
                  }
               }

               return zst.c;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object aR(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var1.d() != null && var3 >= 3 && var3 <= 6) {
         Object var6 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
         if (var6 instanceof Double) {
            double var4 = (Double)var6;
            double var7 = 0.0D;
            double var9 = 0.0D;
            boolean var11 = false;
            Object var12 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var12 instanceof Double) {
               var7 = (Double)var12;
               if (var7 >= 0.0D && var3 > 3) {
                  Object var13 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                  if (!(var13 instanceof Double)) {
                     return var13;
                  }

                  var9 = (Double)var13;
                  var11 = true;
               }

               double var21 = 0.0D;
               Object var15 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var15 instanceof Double) {
                  var21 = (Double)var15;
                  if (var3 > 3 && !var11) {
                     Object var16 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                     if (!(var16 instanceof Double)) {
                        return var16;
                     }

                     var9 = (Double)var16;
                  }

                  double var22 = 0.0D;
                  if (var3 > 4) {
                     Object var18 = zyn.e(this.b((zabd)var1.d().get(4), var2), this.e.getSettings().getDate1904());
                     if (!(var18 instanceof Double)) {
                        return var18;
                     }

                     var22 = (Double)var18;
                     if (var22 != 0.0D) {
                        var22 = 1.0D;
                     }
                  }

                  double var23 = 0.1D;
                  if (var3 > 5) {
                     Object var20 = zyn.e(this.b((zabd)var1.d().get(5), var2), this.e.getSettings().getDate1904());
                     if (!(var20 instanceof Double)) {
                        return var20;
                     }

                     var23 = (Double)var20;
                     if (var23 == 0.0D) {
                        var23 = 0.1D;
                     }
                  }

                  if (var4 == 0.0D) {
                     return zst.f;
                  } else {
                     return var23 <= -1.0D ? zst.i : zvp.c(var4, var7, var21, var9, var22, var23);
                  }
               } else {
                  return var15;
               }
            } else {
               return var12;
            }
         } else {
            return var6;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object aS(zabd var1, Cell var2) {
      zabd var5 = (zabd)var1.d().get(1);
      Object var6 = this.b(var5, var2);
      if (var6 == null) {
         return null;
      } else if (!(var6 instanceof Object[])) {
         return null;
      } else {
         double[][] var7 = zyn.a(var6, this.e.getSettings().getDate1904());
         double[] var8 = var7[0];
         int var9 = var7.length;
         int var10 = var8.length;
         double[] var3 = new double[var9 * var10];

         int var11;
         for(var11 = 0; var11 < var9; ++var11) {
            var8 = var7[var11];

            for(int var12 = 0; var12 < var10; ++var12) {
               var3[var11 * var10 + var12] = var8[var12];
            }
         }

         var5 = (zabd)var1.d().get(0);
         double[][] var4 = zyn.a(this.b(var5, var2), this.e.getSettings().getDate1904());
         Object[][] var13 = zana.a(var3, var4);
         Object[][] var14 = new Object[7][];
         var9 = var4[0].length;

         label52:
         for(var10 = 0; var10 < 7; ++var10) {
            var14[var10] = new Object[var9];
            switch(var10) {
            case 0:
               var14[0][0] = "Regressn Array ... 7 Rows x " + com.aspose.cells.b.a.zo.a(var9) + " Columns";
               break;
            case 1:
               var11 = 0;

               while(true) {
                  if (var11 >= var9) {
                     continue label52;
                  }

                  var14[1][var11] = "X(" + com.aspose.cells.b.a.zo.a(var11 + 1) + ") Coefficient";
                  ++var11;
               }
            case 2:
               var11 = 0;

               while(true) {
                  if (var11 >= var9) {
                     continue label52;
                  }

                  var14[2][var11] = var13[0][var9 - var11 - 1];
                  ++var11;
               }
            case 3:
               var14[3][0] = "Intercept";
               break;
            case 4:
               var14[4][0] = var13[0][var9];
               break;
            case 5:
               var14[5][0] = "Std Error";
               break;
            case 6:
               var14[6][0] = var13[2][1];
            }
         }

         return var14;
      }
   }

   private Object aT(zabd var1, Cell var2) {
      double[][] var4 = (double[][])null;
      zabd var5 = (zabd)var1.d().get(0);
      Object var6 = this.b(var5, var2);
      if (var6 == null) {
         return null;
      } else if (!(var6 instanceof Object[])) {
         return null;
      } else {
         double[][] var7 = zyn.a(var6, this.e.getSettings().getDate1904());
         double[] var8 = var7[0];
         int var9 = var7.length;
         int var10 = var8.length;
         double[] var3 = new double[var9 * var10];

         for(int var11 = 0; var11 < var9; ++var11) {
            var8 = var7[var11];

            for(int var12 = 0; var12 < var10; ++var12) {
               var3[var11 * var10 + var12] = var8[var12];
            }
         }

         int var13;
         for(var13 = 0; var13 < var3.length; ++var13) {
            if (var3[var13] <= 0.0D) {
               return zst.f;
            }

            var3[var13] = Math.log(var3[var13]);
         }

         if (var1.d().size() > 1) {
            var5 = (zabd)var1.d().get(1);
            var4 = zyn.a(this.b(var5, var2), this.e.getSettings().getDate1904());
         }

         if (var4 != null && var4.length != 0) {
            if (var4.length == 1 && var4[0].length == var3.length) {
               var4 = zana.b(var4);
            }
         } else {
            var4 = new double[var3.length][];

            for(var13 = 0; var13 < var3.length; ++var13) {
               var4[var13] = new double[1];
               var4[var13][0] = (double)(var13 + 1);
            }
         }

         Object[][] var14 = zana.a(var3, var4);

         int var15;
         for(var15 = 0; var15 < var14[0].length; ++var15) {
            var14[0][var15] = Math.exp((Double)var14[0][var15]);
         }

         for(var15 = 2; var15 < 5; ++var15) {
            Object[] var16 = var14[var15];

            for(var10 = 2; var10 < var16.length; ++var10) {
               var16[var10] = "#N/A";
            }
         }

         return var14;
      }
   }

   private Object aU(zabd var1, Cell var2) {
      Object var5 = this.b((zabd)var1.d().get(0), var2);
      if (var5 == null) {
         return null;
      } else {
         Object var6 = zyn.a(var5, var2, this.e.getSettings().getDate1904(), true);
         if (var6 instanceof zst) {
            return var6;
         } else {
            double[] var3 = (double[])((double[])var6);
            var5 = this.b((zabd)var1.d().get(1), var2);
            if (var5 == null) {
               return null;
            } else {
               var6 = zyn.a(var5, var2, this.e.getSettings().getDate1904(), true);
               if (var6 instanceof zst) {
                  return var6;
               } else {
                  double[] var4 = (double[])((double[])var6);
                  var6 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
                  if (var6 instanceof zst) {
                     return var6;
                  } else {
                     double var7 = (Double)var6;
                     if (var1.d().size() > 3) {
                        Object var9 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                        if (var9 instanceof zst) {
                           return var9;
                        } else {
                           double var10 = (Double)var9;
                           return zbop.a(var3, var4, var7, var10);
                        }
                     } else {
                        return zbop.a(var3, var4, var7);
                     }
                  }
               }
            }
         }
      }
   }

   private Object aV(zabd var1, Cell var2) {
      Object var5 = this.b((zabd)var1.d().get(0), var2);
      if (var5 == null) {
         return null;
      } else {
         var5 = zyn.a(var5, var2, this.e.getSettings().getDate1904(), true);
         if (var5 instanceof zst) {
            return var5;
         } else {
            double[] var3 = (double[])((double[])var5);
            var5 = this.b((zabd)var1.d().get(1), var2);
            if (var5 == null) {
               return null;
            } else {
               var5 = zyn.a(var5, var2, this.e.getSettings().getDate1904(), true);
               if (var5 instanceof zst) {
                  return var5;
               } else {
                  double[] var4 = (double[])((double[])var5);
                  Object var6 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
                  if (var6 instanceof zst) {
                     return var6;
                  } else {
                     int var7 = (int)com.aspose.cells.a.c.zi.b(var6);
                     if (var7 != 1 && var7 != 2) {
                        return zst.f;
                     } else {
                        Object var8 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                        if (var8 instanceof zst) {
                           return var8;
                        } else {
                           int var9 = (int)com.aspose.cells.a.c.zi.b(var8);
                           switch(var9) {
                           case 1:
                           case 2:
                           case 3:
                              return zbsc.a(var3, var4, var7, var9);
                           default:
                              return zst.f;
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }

   private Object f(zabd var1, Cell var2, int var3) {
      Object[] var4 = new Object[var3];

      for(int var5 = 0; var5 < var3; ++var5) {
         zabd var6 = (zabd)var1.d().get(var5);
         Object var7 = this.b(var6, var2);
         var7 = zyn.b(var7, this.e.getSettings().getDate1904());
         if (var7 != null && var7 instanceof zst) {
            return var7;
         }

         var4[var5] = var7;
      }

      double[][] var8 = (double[][])((double[][])var4[0]);
      double[][] var9 = (double[][])null;
      if (var3 > 1) {
         var9 = (double[][])((double[][])var4[1]);
      }

      switch(u.a(var1.b())) {
      case 116:
         return zbop.a(var8, var9);
      case 242:
         if (var8 == null) {
            return null;
         } else {
            if (var8.length != var8[0].length) {
               return zst.i;
            }

            return zana.d(var8);
         }
      case 246:
         return zyn.a(zana.a(var8));
      case 247:
         if (var8[0].length != var9.length) {
            return zst.i;
         }

         return zyn.a(zana.a(var8, var9));
      default:
         return null;
      }
   }

   private Object aW(zabd var1, Cell var2) {
      double[][] var4 = (double[][])null;
      zabd var5 = (zabd)var1.d().get(0);
      Object var6 = this.b(var5, var2);
      if (var6 == null) {
         return null;
      } else if (var6 instanceof zst) {
         return var6;
      } else if (!(var6 instanceof Object[])) {
         return null;
      } else {
         double[][] var7 = zyn.a(var6, this.e.getSettings().getDate1904());
         double[] var8 = var7[0];
         int var9 = var7.length;
         int var10 = var8.length;
         double[] var3 = new double[var9 * var10];

         int var11;
         int var12;
         for(var11 = 0; var11 < var9; ++var11) {
            var8 = var7[var11];

            for(var12 = 0; var12 < var10; ++var12) {
               var3[var11 * var10 + var12] = var8[var12];
            }
         }

         Object var13 = null;
         if (var1.d().size() > 1) {
            var5 = (zabd)var1.d().get(1);
            var13 = this.b(var5, var2);
            if (var13 != null && var13 instanceof zst) {
               return var13;
            }
         }

         boolean var14 = false;
         if (var1.d().size() > 3) {
            var5 = (zabd)var1.d().get(3);
            Object var15 = this.b(var5, var2);
            if (var15 != null && var15 instanceof Boolean) {
               var14 = (Boolean)var15;
            }
         }

         if (var13 != null) {
            var4 = zyn.a(var13, this.e.getSettings().getDate1904());
         }

         if (var4 != null && var4.length != 0) {
            if (var4.length == 1 && var4[0].length == var3.length) {
               var4 = zana.b(var4);
            } else if (var4.length != var3.length) {
               return zst.g;
            }
         } else {
            var4 = new double[var3.length][];

            for(var9 = 0; var9 < var3.length; ++var9) {
               var4[var9] = new double[1];
               var4[var9][0] = (double)(var9 + 1);
            }
         }

         Object[][] var16 = zana.a(var3, var4);
         if (var2 != null && !var2.y() && !var14 && (var1.c() == null || !"INDEX".equals(var1.c().b()) || var1.c().d().get(0) != var1)) {
            Object[] var17 = var16[0];
            var16 = new Object[var17.length][];

            for(var11 = 0; var11 < var17.length; ++var11) {
               var16[var11] = new Object[]{var17[var11]};
            }

            return var16;
         } else {
            for(var10 = 2; var10 < 5; ++var10) {
               Object[] var18 = var16[var10];

               for(var12 = 2; var12 < var18.length; ++var12) {
                  var18[var12] = "#N/A";
               }
            }

            return var16;
         }
      }
   }

   private Object aX(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 instanceof Object[]) {
         return var4 instanceof double[][] ? zana.b((double[][])((double[][])var4)) : zana.a((Object[][])((Object[][])var4));
      } else {
         return var4;
      }
   }

   private Object aY(zabd var1, Cell var2) {
      zabd var5 = (zabd)var1.d().get(0);
      Object var6 = this.b(var5, var2);
      if (var6 == null) {
         return null;
      } else if (var6 instanceof zst) {
         return var6;
      } else if (!com.aspose.cells.a.c.zc.a(var6)) {
         return null;
      } else {
         double[][] var7 = zyn.a(var6, this.e.getSettings().getDate1904());
         double[] var8 = var7[0];
         int var9 = var7.length;
         int var10 = var8.length;
         double[] var3 = new double[var9 * var10];

         int var12;
         for(int var11 = 0; var11 < var9; ++var11) {
            var8 = var7[var11];

            for(var12 = 0; var12 < var10; ++var12) {
               var3[var11 * var10 + var12] = var8[var12];
            }
         }

         var7 = (double[][])null;
         if (var1.d().size() > 2) {
            var5 = (zabd)var1.d().get(2);
            Object var14 = this.b(var5, var2);
            if (var14 != null && var14 instanceof zst) {
               return var14;
            }

            var7 = zyn.a(var14, this.e.getSettings().getDate1904());
         }

         boolean var15 = true;
         if (var1.d().size() > 3) {
            var5 = (zabd)var1.d().get(3);
            Object var16 = this.b(var5, var2);
            if (var16 != null && var16 instanceof Boolean) {
               var15 = (Boolean)var16;
            }
         }

         double[][] var17 = (double[][])null;
         if (var1.d().size() > 1) {
            var5 = (zabd)var1.d().get(1);
            Object var18 = this.b(var5, var2);
            if (var18 != null && var18 instanceof zst) {
               return var18;
            }

            var17 = zyn.a(var18, this.e.getSettings().getDate1904());
         }

         double[] var4;
         if (var17 != null && var17.length != 0) {
            if (var17.length == var3.length && var17[0].length == 1) {
               var17 = zana.b(var17);
            }

            var4 = var17[0];
            if (var4 == null || var4.length == 0) {
               var4 = new double[var3.length];

               for(var10 = 0; var10 < var3.length; ++var10) {
                  var4[var10] = (double)(var10 + 1);
               }
            }
         } else {
            var4 = new double[var3.length];

            for(var10 = 0; var10 < var3.length; ++var10) {
               var4[var10] = (double)(var10 + 1);
            }

            var17 = new double[][]{var4};
         }

         if (var4.length != var3.length) {
            return zst.g;
         } else {
            double[] var20 = zana.a(var3, var4, var15);
            if (var7 == null) {
               var7 = var17;
            }

            Object[][] var19 = new Object[var7.length][];

            for(var12 = 0; var12 < var7.length; ++var12) {
               if (var7 != null && var7.length != 0) {
                  var19[var12] = new Object[var7[var12].length];

                  for(int var13 = 0; var13 < var7[var12].length; ++var13) {
                     var19[var12][var13] = var20[0] * var7[var12][var13] + var20[1];
                  }
               }
            }

            return var19;
         }
      }
   }

   private Object aZ(zabd var1, Cell var2) {
      zabd var5 = (zabd)var1.d().get(0);
      Object var6 = this.b(var5, var2);
      if (var6 == null) {
         return null;
      } else if (var6 instanceof zst) {
         return var6;
      } else if (!com.aspose.cells.a.c.zc.a(var6)) {
         return null;
      } else {
         double[][] var7 = zyn.a(var6, this.e.getSettings().getDate1904());
         double[] var8 = var7[0];
         int var9 = var7.length;
         int var10 = var8.length;
         double[] var3 = new double[var9 * var10];

         int var11;
         int var12;
         for(var11 = 0; var11 < var9; ++var11) {
            var8 = var7[var11];

            for(var12 = 0; var12 < var10; ++var12) {
               var3[var11 * var10 + var12] = var8[var12];
            }
         }

         Object var15 = null;
         if (var1.d().size() > 1) {
            var5 = (zabd)var1.d().get(1);
            var15 = this.b(var5, var2);
            if (var15 != null && var15 instanceof zst) {
               return var15;
            }
         }

         double[][] var16 = (double[][])null;
         if (var1.d().size() > 2) {
            var5 = (zabd)var1.d().get(2);
            Object var17 = this.b(var5, var2);
            if (var17 != null && var17 instanceof zst) {
               return var17;
            }

            var16 = zyn.a(var17, this.e.getSettings().getDate1904());
         }

         boolean var18 = true;
         if (var1.d().size() > 3) {
            var5 = (zabd)var1.d().get(3);
            Object var19 = this.b(var5, var2);
            if (var19 != null && var19 instanceof Boolean) {
               var18 = (Boolean)var19;
            }
         }

         double[][] var20 = (double[][])null;
         if (var15 != null) {
            var20 = zyn.a(var15, this.e.getSettings().getDate1904());
         }

         double[] var4;
         if (var20 != null && var20.length != 0) {
            if (var20.length == var3.length && var20[0].length == 1) {
               var20 = zana.b(var20);
            }

            var4 = var20[0];
            if (var4 == null || var4.length == 0) {
               var4 = new double[var3.length];

               for(var11 = 0; var11 < var3.length; ++var11) {
                  var4[var11] = (double)(var11 + 1);
               }
            }
         } else {
            var4 = new double[var3.length];

            for(var11 = 0; var11 < var3.length; ++var11) {
               var4[var11] = (double)(var11 + 1);
            }
         }

         if (var4.length != var3.length) {
            return zst.g;
         } else {
            for(var11 = 0; var11 < var3.length; ++var11) {
               var3[var11] = Math.log(var3[var11]);
            }

            double[] var22 = zana.a(var3, var4, var18);
            if (var16 == null) {
               var16 = var20;
               if (var20 == null) {
                  var16 = new double[][]{new double[var3.length]};

                  for(var12 = 0; var12 < var3.length; ++var12) {
                     var16[0][var12] = (double)(var12 + 1);
                  }
               }
            }

            Object[][] var21 = new Object[var16.length][];

            for(int var13 = 0; var13 < var16.length; ++var13) {
               if (var16 != null && var16.length != 0) {
                  var21[var13] = new Object[var16[var13].length];

                  for(int var14 = 0; var14 < var16[var13].length; ++var14) {
                     var21[var13][var14] = Math.exp(var22[0] * var16[var13][var14] + var22[1]);
                  }
               }
            }

            return var21;
         }
      }
   }

   private Object ba(zabd var1, Cell var2) {
      int var4 = -1;
      double[][][] var5 = new double[var1.d().size()][][];

      for(int var6 = 0; var6 < var1.d().size(); ++var6) {
         zabd var7 = (zabd)var1.d().get(var6);
         Object var3 = this.b(var7, var2);
         if (var3 != null) {
            if (var3 instanceof zst) {
               return var3;
            }

            if (!com.aspose.cells.a.c.zc.a(var3) && !(var3 instanceof Double)) {
               return zst.i;
            }

            var3 = zyn.a(var3, this.e.getSettings().getDate1904(), true);
            if (var3 != null) {
               if (var3 instanceof zst) {
                  return var3;
               }

               double[][] var8 = (double[][])((double[][])var3);
               if (var4 == -1) {
                  var4 = var8.length;
               } else if (var4 != var8.length) {
                  return zst.i;
               }

               var5[var6] = var8;
            }
         }
      }

      if (var1.d().size() != 1) {
         return zana.a(var5);
      } else {
         double[][] var12 = var5[0];
         double var13 = 0.0D;
         int var9 = var12[0].length;

         for(int var10 = 0; var10 < var12.length; ++var10) {
            for(int var11 = 0; var11 < var9; ++var11) {
               var13 += var12[var10][var11];
            }
         }

         return var13;
      }
   }

   private Object bb(zabd var1, Cell var2) {
      zabd var5 = (zabd)var1.d().get(0);
      double[] var3 = this.aH(var5, var2);
      if (var3 == null) {
         return null;
      } else {
         zabd var6 = (zabd)var1.d().get(1);
         double[] var4 = this.aH(var6, var2);
         if (var4 == null) {
            return null;
         } else {
            boolean var7 = false;
            boolean[] var8 = new boolean[]{var7};
            Object[][] var9 = zyn.a(zbop.a(var3, var4, var8));
            var7 = var8[0];
            return var9;
         }
      }
   }

   private Object bc(zabd var1, Cell var2) {
      double var3 = 1.0D;
      int var5 = 0;

      for(int var6 = 0; var6 < var1.d().size(); ++var6) {
         zabd var7 = (zabd)var1.d().get(var6);
         Object var8 = this.b(var7, var2);
         if (!(var8 instanceof Object[])) {
            if (var8 == null) {
               var8 = 0.0D;
            } else {
               var8 = zyn.a(this.e, var8, false, this.e.getSettings());
            }

            if (var8 instanceof zst) {
               return var8;
            }

            double var11 = (Double)var8;
            if (var11 == 0.0D) {
               return 0.0D;
            }

            if (var11 < 0.0D) {
               return zst.f;
            }

            var3 *= var11;
            ++var5;
         } else {
            ArrayList var9 = new ArrayList();
            var8 = zyn.a(var9, var8, var2, false, false, false, false, this.e.getSettings().getDate1904(), false);
            if (var8 instanceof zst) {
               return var8;
            }

            for(int var10 = 0; var10 < var9.size(); ++var10) {
               var3 *= (Double)var9.get(var10);
            }

            var5 += var9.size();
         }
      }

      if (var5 == 0) {
         return zst.f;
      } else {
         return Math.pow(var3, 1.0D / (double)var5);
      }
   }

   private Object bd(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      Object var4 = zyn.e(var3, this.e.getSettings().getDate1904());
      if (var4 == null) {
         var4 = 0.0D;
      } else if (var4 instanceof zst) {
         return var4;
      }

      Object var5 = this.b((zabd)var1.d().get(1), var2);
      Object var6 = this.b((zabd)var1.d().get(2), var2);
      Object var7 = zyn.a(var5, var6, this.e.getSettings());
      if (var7 instanceof zst) {
         return var7;
      } else {
         Object[] var8 = (Object[])((Object[])var7);
         return zbop.a((Double)var4, (double[])((double[])var8[0]), (double[])((double[])var8[1]));
      }
   }

   private Object be(zabd var1, Cell var2) {
      double var3 = 0.0D;
      double var5 = 0.0D;
      double var7 = 0.0D;
      int var9 = 0;

      for(int var11 = 0; var11 < var1.d().size(); ++var11) {
         zabd var12 = (zabd)var1.d().get(var11);
         Object var10 = this.b(var12, var2);
         if (var10 instanceof zst) {
            return var10;
         }

         if (var10 instanceof Double) {
            double var25 = (Double)var10;
            var7 += var25;
            var5 += var25 * var25;
            ++var9;
         } else if (com.aspose.cells.a.c.zc.a(var10)) {
            Object[] var13 = (Object[])((Object[])var10);
            Object[] var14 = var13;
            int var15 = var13.length;

            for(int var16 = 0; var16 < var15; ++var16) {
               Object var17 = var14[var16];
               if (com.aspose.cells.a.c.zc.a(var17)) {
                  Object[] var18 = (Object[])((Object[])var17);
                  Object[] var19 = var18;
                  int var20 = var18.length;

                  for(int var21 = 0; var21 < var20; ++var21) {
                     Object var22 = var19[var21];
                     if (var22 instanceof Double) {
                        double var23 = (Double)var22;
                        var7 += var23;
                        var5 += var23 * var23;
                        ++var9;
                     }
                  }
               }
            }
         }
      }

      if (var9 < 2) {
         return zst.a;
      } else {
         var3 = Math.sqrt(((double)var9 * var5 - var7 * var7) / (double)(var9 * (var9 - 1)));
         return var3;
      }
   }

   private Object bf(zabd var1, Cell var2) {
      double var3 = 0.0D;
      double var5 = 0.0D;
      double var7 = 0.0D;
      int var9 = 0;

      for(int var11 = 0; var11 < var1.d().size(); ++var11) {
         zabd var12 = (zabd)var1.d().get(var11);
         Object var10 = this.b(var12, var2);
         if (var10 instanceof zst) {
            return var10;
         }

         if (var10 instanceof Double) {
            double var25 = (Double)var10;
            var7 += var25;
            var5 += var25 * var25;
            ++var9;
         } else if (com.aspose.cells.a.c.zc.a(var10)) {
            Object[] var13 = (Object[])((Object[])var10);
            Object[] var14 = var13;
            int var15 = var13.length;

            for(int var16 = 0; var16 < var15; ++var16) {
               Object var17 = var14[var16];
               if (com.aspose.cells.a.c.zc.a(var17)) {
                  Object[] var18 = (Object[])((Object[])var17);
                  Object[] var19 = var18;
                  int var20 = var18.length;

                  for(int var21 = 0; var21 < var20; ++var21) {
                     Object var22 = var19[var21];
                     if (var22 instanceof Double) {
                        double var23 = (Double)var22;
                        var7 += var23;
                        var5 += var23 * var23;
                        ++var9;
                     }
                  }
               }
            }
         }
      }

      if (var9 < 1) {
         return zst.a;
      } else {
         var3 = Math.sqrt(((double)var9 * var5 - var7 * var7) / (double)(var9 * var9));
         return var3;
      }
   }

   private Object a(zabd var1, zft var2, Cell var3) {
      return this.a(var1, this.e.getWorksheets().get(var2.b), var3, var2.d.StartRow, var2.d.EndRow, var2.d.StartColumn, var2.d.EndColumn);
   }

   private Object bg(zabd var1, Cell var2) {
      double var3 = 0.0D;

      for(int var6 = 0; var6 < var1.d().size(); ++var6) {
         zabd var7 = (zabd)var1.d().get(var6);
         Object var5 = this.b(var7, var2);
         if (var5 != null) {
            if (var5 instanceof zst) {
               return var5;
            }

            boolean var8 = true;
            if (var5 instanceof zft) {
               zft var9 = (zft)var5;
               var5 = this.a(var9);
               var8 = true;
            } else if (var7.f() != null) {
               label36:
               switch(var7.i()) {
               case 2:
                  switch(var7.f()[0]) {
                  case 16:
                  case 17:
                     break label36;
                  default:
                     var8 = false;
                     break label36;
                  }
               default:
                  switch(var7.f()[0]) {
                  case 11:
                  case 23:
                  case 29:
                  case 33:
                  case 34:
                     var8 = false;
                  }
               }
            }

            Object var10 = this.a(var5, var8);
            if (var10 instanceof zst) {
               return var10;
            }

            if (var10 instanceof Double) {
               var3 += (Double)var10;
            }
         }
      }

      return var3;
   }

   private Object a(Object var1, boolean var2) {
      double var3 = 0.0D;
      if (var1 instanceof Object[][]) {
         Object[][] var5 = (Object[][])((Object[][])var1);

         for(int var6 = 0; var6 < var5.length; ++var6) {
            Object[] var7 = (Object[])var5[var6];
            if (var7 != null) {
               for(int var8 = 0; var8 < var7.length; ++var8) {
                  Object var9 = var7[var8];
                  if (var9 != null) {
                     if (var9 instanceof zst) {
                        return var9;
                     }

                     if (var7[var8] instanceof zft) {
                        zft var10 = (zft)var7[var8];
                        Object var11 = this.a(var10);
                        var9 = this.a(var11, true);
                     }

                     var9 = zyn.a(this.e, var9, true, this.e.getSettings());
                     if (var9 instanceof zst) {
                        return var9;
                     }

                     var3 += (Double)var9;
                  }
               }
            }
         }
      } else {
         var1 = zyn.a(this.e, var1, var2, this.e.getSettings());
         if (var1 instanceof zst) {
            return var1;
         }

         var3 += (Double)var1;
      }

      return var3;
   }

   private Object bh(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      if (var3 instanceof zst) {
         return var3;
      } else {
         boolean var4 = var2 != null && var2.y();
         if (!var4 && var1.c() != null) {
            var4 = zfm.a(var1);
         }

         Object[] var5 = new Object[]{var3};
         Object var6 = this.b((zabd)var1.d().get(1), var2);
         Object var7 = var3;
         if (var1.d().size() == 3) {
            var7 = this.b((zabd)var1.d().get(2), var2);
            if (var7 instanceof zst) {
               return var7;
            }
         }

         Object[] var8 = new Object[]{var6};
         switch(u.a(var1.b())) {
         case 44:
            return zcex.a(this, this.e.getWorksheets(), var2, var7, var5, var8, 0, false, var4);
         case 45:
            return zcex.a(this, this.e.getWorksheets(), var2, var7, var5, var8, 2, false, var4);
         case 46:
            return zcex.a(this, this.e.getWorksheets(), var2, var7, var5, var8, 1, false, var4);
         default:
            return null;
         }
      }
   }

   private Object g(zabd var1, Cell var2, int var3) {
      int var4 = "COUNTIFS".equals(var1.b()) ? 0 : 1;
      Object var5 = null;
      if (var4 == 1) {
         var5 = this.b((zabd)var1.d().get(0), var2);
         if (var5 instanceof zst) {
            return var5;
         }
      }

      int var6 = (var1.d().size() - var4) / 2;
      boolean var7 = var2 != null && var2.y();
      if (!var7 && var1.c() != null) {
         var7 = zfm.a(var1);
      }

      Object[] var8 = new Object[var6];
      Object[] var9 = new Object[var6];

      for(int var10 = 0; var10 < var6; ++var10) {
         var8[var10] = this.b((zabd)var1.d().get(var10 * 2 + var4), var2);
         var9[var10] = this.b((zabd)var1.d().get(var10 * 2 + var4 + 1), var2);
      }

      return zcex.a(this, this.e.getWorksheets(), var2, var5, var8, var9, var3, true, var7);
   }

   private Object bi(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 1) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         if (var3 == null) {
            return true;
         } else if (var3 instanceof zst) {
            return var3;
         } else {
            return com.aspose.cells.a.c.zc.a(var3) ? zba.a(this.e, var3) : zbc.a(this.e, var3);
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object bj(zabd var1, Cell var2) {
      Object var9 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var9 instanceof Double) {
         double var3 = (Double)var9;
         if (var3 >= 0.0D && var3 <= 1.0D) {
            var9 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var9 instanceof Double) {
               double var5 = (Double)var9;
               var9 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
               if (var9 instanceof Double) {
                  double var7 = (Double)var9;
                  return var7 < 0.0D ? zst.f : zaor.a(var3, var5, var7);
               } else {
                  return var9;
               }
            } else {
               return var9;
            }
         } else {
            return zst.f;
         }
      } else {
         return var9;
      }
   }

   private Object bk(zabd var1, Cell var2) {
      Object var8 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var8 instanceof Double) {
         double var3 = (Double)var8;
         if (var3 < 0.0D) {
            return zst.f;
         } else {
            var8 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
            if (var8 instanceof Double) {
               double var5 = (Double)var8;
               if (var5 <= 0.0D) {
                  return zst.f;
               } else {
                  var8 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
                  if (var8 instanceof Double) {
                     boolean var7;
                     if ((Double)var8 == 0.0D) {
                        var7 = false;
                     } else {
                        var7 = true;
                     }

                     return zbor.a((int)var3, var5, var7);
                  } else {
                     return var8;
                  }
               }
            } else {
               return var8;
            }
         }
      } else {
         return var8;
      }
   }

   private Object bl(zabd var1, Cell var2) {
      Object var10 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var10 instanceof Double) {
         double var3 = (Double)var10;
         var10 = zyn.e(this.b((zabd)var1.d().get(1), var2), this.e.getSettings().getDate1904());
         if (var10 instanceof Double) {
            double var5 = (Double)var10;
            var10 = zyn.e(this.b((zabd)var1.d().get(2), var2), this.e.getSettings().getDate1904());
            if (var10 instanceof Double) {
               double var7 = (Double)var10;
               if (var7 < 0.0D) {
                  return zst.f;
               } else {
                  var10 = zyn.e(this.b((zabd)var1.d().get(3), var2), this.e.getSettings().getDate1904());
                  if (var10 instanceof Double) {
                     boolean var9;
                     if ((Double)var10 == 0.0D) {
                        var9 = false;
                     } else {
                        var9 = true;
                     }

                     return zaor.a(var3, var5, var7, var9);
                  } else {
                     return var10;
                  }
               }
            } else {
               return var10;
            }
         } else {
            return var10;
         }
      } else {
         return var10;
      }
   }

   private Object bm(zabd var1, Cell var2) {
      Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var5 instanceof Double) {
         double var3 = (Double)var5;
         return zaor.b(var3);
      } else {
         return var5;
      }
   }

   private Object bn(zabd var1, Cell var2) {
      Object var5 = zyn.e(this.b((zabd)var1.d().get(0), var2), this.e.getSettings().getDate1904());
      if (var5 instanceof Double) {
         double var3 = (Double)var5;
         return zaor.a(var3);
      } else {
         return var5;
      }
   }

   private Object bo(zabd var1, Cell var2) {
      double var3 = 0.0D;
      Object var5 = this.b((zabd)var1.d().get(0), var2);
      var5 = zyn.e(var5, this.e.getSettings().getDate1904());
      if (var5 instanceof zst) {
         return var5;
      } else {
         double var6 = (Double)var5;
         if (var6 + 1.0D < Double.MIN_VALUE) {
            return zst.a;
         } else {
            int var8 = 1;

            for(int var11 = 1; var11 < var1.d().size(); ++var11) {
               zabd var12 = (zabd)var1.d().get(var11);
               var5 = this.b(var12, var2);
               if (var5 != null) {
                  if (var5 instanceof zst) {
                     return var5;
                  }

                  double var9;
                  switch(zamo.a(var5.getClass())) {
                  case 1:
                     if (!(var5 instanceof Object[][])) {
                        break;
                     }

                     Object[][] var13 = (Object[][])((Object[][])var5);
                     int var14 = 0;

                     for(; var14 < var13.length; ++var14) {
                        Object[] var15 = (Object[])var13[var14];
                        if (var15 != null) {
                           for(int var16 = 0; var16 < var15.length; ++var16) {
                              Object var17 = var15[var16];
                              if (var17 != null) {
                                 if (var17 instanceof zst) {
                                    return var17;
                                 }

                                 switch(zamo.a(var17.getClass())) {
                                 case 14:
                                    var9 = (Double)var17;
                                    var3 += var9 / Math.pow(1.0D + var6, (double)var8);
                                    ++var8;
                                    break;
                                 case 16:
                                    var9 = CellsHelper.getDoubleFromDateTime((DateTime)var17, this.e.getSettings().getDate1904());
                                    var3 += var9 / Math.pow(1.0D + var6, (double)var8);
                                    ++var8;
                                 }
                              }
                           }
                        }
                     }
                     break;
                  case 3:
                     var9 = (Boolean)var5 ? 1.0D : 0.0D;
                     var3 += var9 / Math.pow(1.0D + var6, (double)var8);
                     ++var8;
                     break;
                  case 14:
                     var9 = (Double)var5;
                     var3 += var9 / Math.pow(1.0D + var6, (double)var8);
                     ++var8;
                     break;
                  case 16:
                     var9 = CellsHelper.getDoubleFromDateTime((DateTime)var5, this.e.getSettings().getDate1904());
                     var3 += var9 / Math.pow(1.0D + var6, (double)var8);
                     ++var8;
                     break;
                  case 18:
                     if (!zapb.d((String)var5)) {
                        return zst.i;
                     }

                     try {
                        var9 = com.aspose.cells.b.a.zn.a((String)var5);
                        var3 += var9 / Math.pow(1.0D + var6, (double)var8);
                        ++var8;
                     } catch (Exception var18) {
                        return zst.i;
                     }
                  }
               }
            }

            return var3;
         }
      }
   }

   private Object bp(zabd var1, Cell var2) {
      double[] var3 = new double[5];

      for(int var4 = 0; var4 < var1.d().size(); ++var4) {
         zabd var5 = (zabd)var1.d().get(var4);
         Object var6 = this.b(var5, var2);
         if (var6 != null) {
            if (var6 instanceof zst) {
               return var6;
            }

            switch(zamo.a(var6.getClass())) {
            case 14:
               var3[var4] = (Double)var6;
               break;
            case 18:
               return zst.i;
            }
         }
      }

      return zvp.b(var3[0], var3[1], var3[2], var3[3], var3[4]);
   }

   private Object bq(zabd var1, Cell var2) {
      double[] var3 = new double[5];

      for(int var4 = 0; var4 < var1.d().size(); ++var4) {
         zabd var5 = (zabd)var1.d().get(var4);
         Object var6 = this.b(var5, var2);
         if (var6 != null) {
            if (var6 instanceof zst) {
               return var6;
            }

            switch(zamo.a(var6.getClass())) {
            case 14:
               var3[var4] = (Double)var6;
               break;
            case 18:
               return zst.i;
            }
         }
      }

      if (var3[0] == 0.0D && var3[1] == 0.0D) {
         return zst.a;
      } else {
         return zvp.c(var3[0], var3[1], var3[2], var3[3], var3[4]);
      }
   }

   private Object br(zabd var1, Cell var2) {
      double[] var3 = new double[5];

      for(int var4 = 0; var4 < var1.d().size(); ++var4) {
         zabd var5 = (zabd)var1.d().get(var4);
         Object var6 = this.b(var5, var2);
         if (var6 != null) {
            if (var6 instanceof zst) {
               return var6;
            }

            switch(zamo.a(var6.getClass())) {
            case 14:
               var3[var4] = (Double)var6;
               break;
            case 18:
               return zst.i;
            }
         }
      }

      return zvp.d(var3[0], var3[1], var3[2], var3[3], var3[4]);
   }

   private Object bs(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         double var3 = 0.0D;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var5 = this.b(var7, var2);
            if (var5 != null) {
               switch(zamo.a(var5.getClass())) {
               case 3:
               case 16:
                  ++var3;
                  break;
               case 14:
                  if (var7.f() != null && var7.f().length > 0) {
                     switch(var7.f()[0]) {
                     case 23:
                     case 35:
                     case 36:
                     case 37:
                     case 45:
                     case 59:
                     case 67:
                     case 68:
                     case 69:
                     case 77:
                     case 91:
                     case 99:
                     case 100:
                     case 101:
                     case 109:
                     case 123:
                        var3 += (Double)var5;
                        continue;
                     case 24:
                        var3 += (Double)var5;
                        continue;
                     default:
                        ++var3;
                        continue;
                     }
                  }

                  ++var3;
                  break;
               case 18:
                  String var8 = (String)var5;
                  if (zapb.d(var8)) {
                     ++var3;
                  }
                  break;
               default:
                  if (var5 instanceof Object[][]) {
                     Object[][] var9 = (Object[][])((Object[][])var5);
                     if (var9[0][0] instanceof zft) {
                        var5 = this.a(var1, var2, var9);
                     }

                     var3 += (double)zba.c(var5);
                  } else if (!(var5 instanceof zst)) {
                     ++var3;
                  }
               }
            }
         }

         return var3;
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object bt(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0 && var1.d().size() <= 255) {
         double var3 = 0.0D;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            Object var5 = this.b(var7, var2);
            if (var5 instanceof zft) {
               zft var8 = (zft)var5;
               Worksheet var9 = this.e.getWorksheets().get(var8.b);
               var5 = this.a(var1, var9, var2, var8.d.StartRow, var8.d.EndRow, var8.d.StartColumn, var8.d.EndColumn);
            }

            if (var5 != null) {
               switch(zamo.a(var5.getClass())) {
               case 3:
                  ++var3;
                  break;
               case 14:
                  if (var7.f() != null && var7.f().length > 0) {
                     switch(var7.f()[0]) {
                     case 24:
                        var3 += (Double)var5;
                        continue;
                     case 25:
                     case 26:
                     case 27:
                     case 28:
                     case 29:
                     case 30:
                     case 31:
                     case 32:
                     case 33:
                     case 34:
                     case 38:
                     case 39:
                     case 40:
                     case 41:
                     case 42:
                     case 43:
                     case 46:
                     case 47:
                     case 48:
                     case 49:
                     case 50:
                     case 51:
                     case 52:
                     case 53:
                     case 54:
                     case 55:
                     case 56:
                     case 57:
                     case 60:
                     case 61:
                     case 62:
                     case 63:
                     case 64:
                     case 65:
                     case 66:
                     case 70:
                     case 71:
                     case 72:
                     case 73:
                     case 74:
                     case 75:
                     case 78:
                     case 79:
                     case 80:
                     case 81:
                     case 82:
                     case 83:
                     case 84:
                     case 85:
                     case 86:
                     case 87:
                     case 88:
                     case 89:
                     case 92:
                     case 93:
                     case 94:
                     case 95:
                     case 96:
                     case 97:
                     case 98:
                     case 102:
                     case 103:
                     case 104:
                     case 105:
                     case 106:
                     case 107:
                     case 110:
                     case 111:
                     case 112:
                     case 113:
                     case 114:
                     case 115:
                     case 116:
                     case 117:
                     case 118:
                     case 119:
                     case 120:
                     case 121:
                     default:
                        ++var3;
                        continue;
                     case 35:
                     case 36:
                     case 37:
                     case 44:
                     case 45:
                     case 58:
                     case 59:
                     case 67:
                     case 68:
                     case 69:
                     case 76:
                     case 77:
                     case 90:
                     case 91:
                     case 99:
                     case 100:
                     case 101:
                     case 108:
                     case 109:
                     case 122:
                     case 123:
                        var3 += (Double)var5;
                        continue;
                     }
                  }

                  ++var3;
                  break;
               case 16:
                  ++var3;
                  break;
               case 18:
                  ++var3;
                  break;
               default:
                  if (var5 instanceof Object[]) {
                     var3 += (double)zba.d(var5);
                  }
               }
            }
         }

         return var3;
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object bu(zabd var1, Cell var2) {
      zabd var4 = (zabd)var1.d().get(0);
      Object var3 = this.b(var4, var2);
      if (var3 != null) {
         if (var3 instanceof Object[]) {
            double var5 = (double)zba.b(var3);
            return var5;
         } else if (var3 instanceof String) {
            return ((String)var3).length() == 0 ? 1.0D : 0.0D;
         } else {
            return 0.0D;
         }
      } else {
         return 1.0D;
      }
   }

   private Object bv(zabd var1, Cell var2) {
      StringBuilder var3 = new StringBuilder();

      for(int var5 = 0; var5 < var1.d().size(); ++var5) {
         zabd var6 = (zabd)var1.d().get(var5);
         Object var4 = this.b(var6, var2);
         if (var4 != null) {
            if (var4 instanceof zst) {
               return var4;
            }

            switch(zamo.a(var4.getClass())) {
            case 3:
               if ((Boolean)var4) {
                  var3.append("TRUE");
               } else {
                  var3.append("FALSE");
               }
               break;
            case 16:
               double var7 = CellsHelper.getDoubleFromDateTime((DateTime)var4, this.e.getSettings().getDate1904());
               var3.append(var7);
               break;
            case 18:
               var3.append(com.aspose.cells.b.a.zr.a(var4));
               break;
            default:
               var3.append(com.aspose.cells.b.a.zr.a(var4));
            }
         }
      }

      return com.aspose.cells.b.a.zr.a(var3);
   }

   private Object bw(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 1) {
         zabd var3 = (zabd)var1.d().get(0);
         if (var3.f() != null && var3.f().length > 1) {
            switch(var3.f()[0]) {
            case 30:
            case 31:
               return 1.0D;
            }
         }

         Object var4 = this.b(var3, var2);
         if (var4 instanceof zst) {
            return var4;
         } else if (var4 instanceof Object[]) {
            Object[] var5 = (Object[])((Object[])var4);
            return (double)var5.length;
         } else {
            switch(zamo.a(var4.getClass())) {
            case 14:
               return var4;
            default:
               return zst.i;
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object bx(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() != 0) {
         if (var1.d().size() > 1) {
            throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
         } else {
            zabd var3 = (zabd)var1.d().get(0);
            if (var3.f() != null) {
               switch(var3.f()[0]) {
               case 23:
               case 29:
               case 30:
               case 31:
                  throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
               case 24:
               case 25:
               case 26:
               case 27:
               case 28:
               }
            }

            Object var4 = this.b(var3, var2);
            if (var4 instanceof zst) {
               return var4;
            } else {
               switch(zamo.a(var4.getClass())) {
               case 14:
                  return var4;
               default:
                  if (var4 instanceof zft) {
                     return (double)((zft)var4).d.StartColumn + 1.0D;
                  } else {
                     return var4 instanceof Object[] ? var4 : zst.i;
                  }
               }
            }
         }
      } else if (var2 == null) {
         return (double)(var1.j() + 1);
      } else {
         return "ROW".equals(var1.b()) ? (double)(var2.getRow() + 1) : (double)(var2.getColumn() + 1);
      }
   }

   private int[] by(zabd var1, Cell var2) {
      int[] var3 = null;
      int var4 = 0;
      if (var2 != null) {
         var4 = var2.d.h().getIndex();
      }

      boolean var5 = false;
      int var6 = this.e.getWorksheets().u();
      int var7 = 0;
      int var8 = 0;
      if (var2 != null) {
         var7 = var2.getRow();
         var8 = var2.getColumn();
      }

      int var12;
      switch(var1.f()[0]) {
      case 35:
      case 67:
      case 99:
         int var9 = (com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff') - 1;
         Name var10 = this.e.getWorksheets().getNames().get(var9);
         Range var11 = var10.getRange();
         if (var11 == null) {
            return null;
         }

         var3 = new int[]{var11.getFirstRow(), var11.getFirstColumn(), var6, var11.getWorksheet().getIndex()};
         break;
      case 36:
      case 68:
      case 100:
         var3 = new int[]{com.aspose.cells.b.a.zc.a(var1.f(), 1), zcew.a(var1.f(), 5), var6, var4};
         break;
      case 37:
      case 69:
      case 101:
         var3 = new int[]{com.aspose.cells.b.a.zc.a(var1.f(), 1), zcew.a(var1.f(), 9), var6, var4};
      case 38:
      case 39:
      case 40:
      case 41:
      case 42:
      case 43:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
      case 60:
      case 61:
      case 62:
      case 63:
      case 64:
      case 65:
      case 66:
      case 70:
      case 71:
      case 72:
      case 73:
      case 74:
      case 75:
      case 78:
      case 79:
      case 80:
      case 81:
      case 82:
      case 83:
      case 84:
      case 85:
      case 86:
      case 87:
      case 88:
      case 89:
      case 92:
      case 93:
      case 94:
      case 95:
      case 96:
      case 97:
      case 98:
      case 102:
      case 103:
      case 104:
      case 105:
      case 106:
      case 107:
      case 110:
      case 111:
      case 112:
      case 113:
      case 114:
      case 115:
      case 116:
      case 117:
      case 118:
      case 119:
      case 120:
      case 121:
      default:
         break;
      case 44:
      case 76:
      case 108:
         var3 = new int[]{zcew.a(var1.f(), 1, var7, var1.f()[6]), zcew.b(var1.f(), 5, var8, var1.f()[6]), var6, var4};
         break;
      case 45:
      case 77:
      case 109:
         var3 = new int[]{zcew.a(var1.f(), 1, var8, var1.f()[10]), zcew.b(var1.f(), 9, var8, var1.f()[10]), var6, var4};
         break;
      case 58:
      case 90:
      case 122:
         var3 = new int[4];
         var12 = com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff';
         var6 = this.e.getWorksheets().q().c(var12);
         var4 = this.e.getWorksheets().q().d(var12);
         var3[0] = com.aspose.cells.b.a.zc.a(var1.f(), 3);
         var3[1] = zcew.a(var1.f(), 7);
         var3[2] = var6;
         var3[3] = var4;
         break;
      case 59:
      case 91:
      case 123:
         var3 = new int[]{com.aspose.cells.b.a.zc.a(var1.f(), 3), zcew.a(var1.f(), 11), 0, 0};
         var12 = com.aspose.cells.b.a.zc.e(var1.f(), 1) & '\uffff';
         var6 = this.e.getWorksheets().q().c(var12);
         var4 = this.e.getWorksheets().q().d(var12);
         var3[2] = var6;
         var3[3] = var4;
      }

      return var3;
   }

   private Object bz(zabd var1, Cell var2) {
      int var3 = var1.d().size();
      if (var3 != 1 && var3 != 2) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var4 = (zabd)var1.d().get(0);
         Object var5 = this.b(var4, var2);
         if (!(var5 instanceof String)) {
            return zst.i;
         } else {
            String var6 = (String)var5;
            int var8;
            int[] var11;
            int var14;
            switch(u.a(var6.toUpperCase())) {
            case 30:
               if (var3 == 1) {
                  return var2.getRow() + 1;
               }

               var11 = this.by((zabd)var1.d().get(1), var2);
               if (var11 != null) {
                  return var11[0] + 1;
               }
               break;
            case 36:
            case 376:
            case 377:
            case 378:
            case 379:
            case 380:
            case 381:
            case 382:
               Cell var12 = null;
               if (var1.d().size() <= 1) {
                  var12 = var2;
               } else {
                  int[] var13 = this.by((zabd)var1.d().get(1), var2);
                  if (var13 != null) {
                     var14 = var13[2];
                     int var15 = var13[3];
                     if (var14 == this.e.getWorksheets().u() && var15 >= 0 && var15 < this.e.getWorksheets().getCount()) {
                        switch(u.a(var6.toUpperCase())) {
                        case 380:
                           return (double)((int)(this.e.getWorksheets().get(var15).getCells().getColumnWidth(var13[1]) + 0.5D));
                        default:
                           var12 = this.e.getWorksheets().get(var15).getCells().getRows().a.a(var13[0], var13[1]);
                        }
                     }
                  }
               }

               switch(u.a(var6.toUpperCase())) {
               case 36:
                  return zfx.d(var12);
               case 376:
                  return zfx.h(var12);
               case 377:
                  return zfx.e(var12);
               case 378:
                  return zfx.g(var12);
               case 379:
                  return zfx.f(var12);
               case 380:
                  return zfx.c(var12);
               case 381:
                  return zfx.b(var12);
               case 382:
                  return zfx.a(var12);
               default:
                  return zst.i;
               }
            case 76:
               if (var3 == 1) {
                  return "$" + CellsHelper.columnIndexToName(var2.getColumn()) + "$" + com.aspose.cells.b.a.zo.a(var2.getRow() + 1);
               }

               var11 = this.by((zabd)var1.d().get(1), var2);
               if (var11 != null) {
                  var8 = var11[0];
                  var14 = var11[1];
                  return "$" + CellsHelper.columnIndexToName(var14) + "$" + com.aspose.cells.b.a.zo.a(var8 + 1);
               }

               return "";
            case 374:
               if (var3 == 1) {
                  return var2.getColumn() + 1;
               }

               var11 = this.by((zabd)var1.d().get(1), var2);
               if (var11 != null) {
                  return var11[1] + 1;
               }
               break;
            case 375:
               String var7 = this.e.getFileName();
               if (var7 != null && !"".equals(var7)) {
                  var8 = var7.lastIndexOf(92);
                  StringBuilder var9 = new StringBuilder();
                  var9.append(var7.substring(0, 0 + var8 + 1));
                  var9.append('[');
                  var9.append(var7.substring(var8 + 1));
                  var9.append(']');
                  if (var1.d().size() == 1) {
                     var9.append(var2.d.h().getName());
                  } else {
                     Object var10 = this.b((zabd)var1.d().get(1), var2);
                     if (var10 != null && var10 instanceof zft) {
                        var9.append(this.e.getWorksheets().get(((zft)var10).b).getName());
                     } else {
                        var9.append(var2.d.h().getName());
                     }
                  }

                  return com.aspose.cells.b.a.zr.a(var9);
               }

               return "";
            }

            return "";
         }
      }
   }

   private Object bA(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      if (var4 == null) {
         return zst.i;
      } else if (var4 instanceof zst) {
         return var4;
      } else {
         boolean var5 = false;
         int var9;
         switch(zamo.a(var4.getClass())) {
         case 3:
            if (!(Boolean)var4) {
               return zst.i;
            }

            var9 = 1;
            break;
         case 14:
            var9 = (int)com.aspose.cells.a.c.zi.b(var4);
            if (var9 > 0 && var9 <= 255) {
               break;
            }

            return zst.i;
         case 16:
            var9 = (int)CellsHelper.getDoubleFromDateTime((DateTime)var4, this.e.getSettings().getDate1904());
            if (var9 > 0 && var9 <= 255) {
               break;
            }

            return zst.i;
         case 18:
            String var6 = (String)var4;
            if (!zapb.d(var6)) {
               return zst.i;
            }

            try {
               var9 = (int)com.aspose.cells.b.a.zn.a(var6);
               if (var9 > 0 && var9 <= 255) {
                  break;
               }

               return zst.i;
            } catch (Exception var8) {
               return zst.i;
            }
         default:
            return zst.i;
         }

         return Character.toString((char)var9);
      }
   }

   private Object bB(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() >= 2 && var1.d().size() <= 255) {
         Object var3 = this.b((zabd)var1.d().get(0), var2);
         if (var3 == null) {
            return zst.i;
         } else if (!(var3 instanceof Object[][])) {
            var3 = zyn.e(var3, this.e.getSettings().getDate1904());
            if (var3 instanceof zst) {
               return var3;
            } else if (var3 instanceof String) {
               return zst.i;
            } else {
               int var9 = (int)com.aspose.cells.a.c.zi.b(var3);
               if (var9 <= 0) {
                  return zst.i;
               } else {
                  return var9 >= var1.d().size() ? zst.i : this.b((zabd)var1.d().get(var9), var2);
               }
            }
         } else {
            Object[][] var4 = (Object[][])((Object[][])var3);
            Object[][] var5 = new Object[var4.length][];

            for(int var6 = 0; var6 < var4.length; ++var6) {
               if (var4[var6] != null) {
                  var5[var6] = new Object[var4[var6].length];

                  for(int var7 = 0; var7 < var4[var6].length; ++var7) {
                     var3 = var4[var6][var7];
                     var3 = zyn.e(var3, this.e.getSettings().getDate1904());
                     if (!(var3 instanceof zst)) {
                        int var8 = (int)com.aspose.cells.a.c.zi.b(var3);
                        if (var8 > 0 && var8 < var1.d().size()) {
                           var5[var6][var7] = this.b((zabd)var1.d().get(var8), var2);
                        }
                     }
                  }
               }
            }

            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object bC(zabd var1, Cell var2) {
      if (var1.d().size() != 2) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         Object var7 = this.b((zabd)var1.d().get(0), var2);
         if (var7 == null) {
            return 0.0D;
         } else {
            var7 = zyn.e(var7, this.e.getSettings().getDate1904());
            if (var7 instanceof zst) {
               return var7;
            } else {
               double var3 = (Double)var7;
               Object var8 = this.b((zabd)var1.d().get(1), var2);
               if (var8 == null) {
                  return 0.0D;
               } else {
                  var8 = zyn.e(var8, this.e.getSettings().getDate1904());
                  if (var8 instanceof zst) {
                     return var8;
                  } else {
                     double var5 = (Double)var8;
                     if (var3 != 0.0D && var5 != 0.0D) {
                        double var9 = Math.ceil(zbc.a(var3) / var5);
                        return var3 > 0.0D && var5 < 0.0D ? zst.f : var9 * var5;
                     } else {
                        return 0.0D;
                     }
                  }
               }
            }
         }
      }
   }

   private Object bD(zabd var1, Cell var2) {
      if (var1.d().size() != 0 && var1.d().size() <= 255) {
         int var3 = 0;
         Object var4 = null;
         boolean var5 = true;

         for(int var6 = 0; var6 < var1.d().size(); ++var6) {
            zabd var7 = (zabd)var1.d().get(var6);
            var4 = this.b(var7, var2);
            if (var4 == null) {
               if (var7.f()[0] == 22) {
                  var5 = false;
                  ++var3;
               }
            } else {
               if (var4 instanceof zst) {
                  return var4;
               }

               if (var5) {
                  switch(zamo.a(var4.getClass())) {
                  case 3:
                     boolean var11 = (Boolean)var4;
                     if (!var11) {
                        var5 = false;
                     }
                     break;
                  case 9:
                     int var10 = (Integer)var4;
                     if (var10 == 0) {
                        var5 = false;
                     }
                     break;
                  case 14:
                     double var8 = (Double)var4;
                     if (var8 == 0.0D) {
                        var5 = false;
                     }
                  case 16:
                     break;
                  case 18:
                     if (!zyn.a(var7.f()[0])) {
                        return zst.i;
                     }
                     continue;
                  default:
                     if (!(var4 instanceof Object[])) {
                        continue;
                     }

                     Object[] var12 = (Object[])((Object[])var4);
                     boolean var13 = false;

                     for(int var14 = 0; var14 < var12.length; ++var14) {
                        Object[] var15 = (Object[])((Object[])com.aspose.cells.b.a.za.a(var12, var14));
                        if (var15 != null) {
                           for(int var16 = 0; var16 < var15.length; ++var16) {
                              Object var17 = com.aspose.cells.b.a.za.a(var15, var16);
                              if (var17 != null) {
                                 if (var17 instanceof zst) {
                                    return var17;
                                 }

                                 if (var5) {
                                    switch(zamo.a(var17.getClass())) {
                                    case 3:
                                       if (!(Boolean)var17) {
                                          var5 = false;
                                       }

                                       var13 = true;
                                       break;
                                    case 9:
                                       if ((Integer)var17 == 0) {
                                          var5 = false;
                                       }

                                       var13 = true;
                                       break;
                                    case 14:
                                       if ((Double)var17 == 0.0D) {
                                          var5 = false;
                                       }

                                       var13 = true;
                                    }
                                 }
                              }
                           }
                        }
                     }

                     if (var13) {
                        ++var3;
                     }
                     continue;
                  }
               }

               ++var3;
            }
         }

         if (var3 == 0) {
            return zst.i;
         } else {
            return var5;
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object bE(zabd var1, Cell var2) {
      if (var1.d().size() == 0) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         double var3 = 0.0D;
         int var6 = 0;

         for(int var7 = 0; var7 < var1.d().size(); ++var7) {
            zabd var8 = (zabd)var1.d().get(var7);
            Object var5 = this.b(var8, var2);
            if (var5 != null) {
               if (var5 instanceof Object[][]) {
                  Object[][] var9 = (Object[][])((Object[][])var5);

                  for(int var10 = 0; var10 < var9.length; ++var10) {
                     Object[] var11 = (Object[])var9[var10];
                     if (var11 != null) {
                        for(int var12 = 0; var12 < var11.length; ++var12) {
                           Object var13 = var11[var12];
                           if (var13 != null) {
                              if (var13 instanceof zst) {
                                 return var13;
                              }

                              switch(zamo.a(var13.getClass())) {
                              case 14:
                                 var3 += (Double)var13;
                                 ++var6;
                              case 15:
                              case 17:
                              case 18:
                              default:
                                 break;
                              case 16:
                                 var3 += CellsHelper.getDoubleFromDateTime((DateTime)var13, this.e.getSettings().getDate1904());
                                 ++var6;
                              }
                           }
                        }
                     }
                  }
               } else {
                  if (var5 instanceof zst) {
                     return var5;
                  }

                  boolean var14 = true;
                  if (var8.f() != null) {
                     switch(var8.f()[0]) {
                     case 11:
                     case 23:
                     case 29:
                     case 33:
                     case 34:
                        var14 = false;
                     }
                  }

                  var5 = zyn.a(this.e, var5, var14, this.e.getSettings());
                  if (var5 instanceof zst) {
                     return var5;
                  }

                  var3 += (Double)var5;
                  var6 += this.o + 1;
               }

               this.o = 0;
            }
         }

         if (var6 == 0) {
            return zst.a;
         } else {
            var3 /= (double)var6;
            this.o = 0;
            return var3;
         }
      }
   }

   private Object bF(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         return var4 instanceof Double ? Math.cos((Double)var4) : var4;
      }
   }

   private Object bG(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         return var4 instanceof Double ? Math.sin((Double)var4) : var4;
      }
   }

   private Object bH(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var5 = (Double)var4;
            return Math.abs(var5) > 1.0D ? zst.f : Math.acos(var5);
         } else {
            return var4;
         }
      }
   }

   private Object bI(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var5 = (Double)var4;
            return var5 <= 1.0D && var5 >= -1.0D ? Math.asin((Double)var4) : zst.f;
         } else {
            return var4;
         }
      }
   }

   private Object bJ(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         return var4 instanceof Double ? Math.sinh((Double)var4) : var4;
      }
   }

   private Object bK(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         return var4 instanceof Double ? Math.cosh((Double)var4) : var4;
      }
   }

   private Object j(zabd var1, Cell var2, boolean var3) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var4 = (zabd)var1.d().get(0);
         Object var5 = this.b(var4, var2);
         if (var5 != null) {
            if (var5 instanceof zst) {
               return var5;
            }

            if (var5 instanceof zft) {
               zft var6 = (zft)var5;
               var5 = this.a(var1, var6, var2);
            }
         }

         zabd var15 = (zabd)var1.d().get(1);
         Object var7 = this.b(var15, var2);
         if (var7 != null && var7 instanceof zst) {
            return var7;
         } else if (!(var5 instanceof Object[][])) {
            if (var5 instanceof Double) {
               if (var7 instanceof Double) {
                  int var16 = var3 ? (int)com.aspose.cells.a.c.zi.b(var7) : (int)Math.ceil(com.aspose.cells.a.c.zi.b(var7));
                  if (var16 == 1) {
                     return var5;
                  }
               }

               return zst.f;
            } else {
               return zst.f;
            }
         } else {
            Object[][] var8 = (Object[][])((Object[][])var5);
            if (var8[0][0] instanceof zft) {
               var8 = (Object[][])((Object[][])this.a(var1, var2, var8));
            }

            if (!(var7 instanceof Double)) {
               return zst.i;
            } else {
               int var9 = var3 ? (int)com.aspose.cells.a.c.zi.b(var7) : (int)Math.ceil(com.aspose.cells.a.c.zi.b(var7));
               if (var9 <= 0) {
                  return zst.f;
               } else {
                  Object[] var10 = var8[0];
                  zalo var11 = new zalo(var9, !var3);

                  for(int var12 = 0; var12 < var8.length; ++var12) {
                     if (var8[var12] != null) {
                        for(int var13 = 0; var13 < var10.length; ++var13) {
                           Object var14 = var8[var12][var13];
                           if (var14 instanceof Double) {
                              var11.a((Double)var14);
                           } else if (var14 instanceof zst) {
                              return var14;
                           }
                        }
                     }
                  }

                  if (var11.c < var9) {
                     return zst.f;
                  } else {
                     return var11.a(var9 - 1);
                  }
               }
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   void a(byte[] var1, int var2, int[] var3, int[] var4, int[] var5, int[] var6) {
      var3[0] = com.aspose.cells.b.a.zc.a(var1, var2);
      var5[0] = com.aspose.cells.b.a.zc.a(var1, var2 + 4);
      var4[0] = zcew.a(var1, var2 + 8);
      var6[0] = zcew.a(var1, var2 + 10);
   }

   private Object bL(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      var4 = zyn.e(var4, this.e.getSettings().getDate1904());
      if (var4 instanceof zst) {
         return var4;
      } else {
         int var5 = (int)com.aspose.cells.a.c.zi.b(var4);
         boolean var6 = false;
         if (var5 <= 111 && var5 >= 1) {
            if (var5 >= 100) {
               var6 = true;
            }

            var5 %= 100;
            if (var5 > 11) {
               return zst.i;
            } else {
               ArrayList var7 = new ArrayList();
               int var8 = 0;

               label212:
               for(int var9 = 1; var9 < var1.d().size(); ++var9) {
                  zabd var10000 = (zabd)var1.d().get(var9);
                  int var11 = 0;
                  int var12 = 0;
                  int var13 = 0;
                  int var14 = 0;
                  Worksheet var15 = null;
                  Object var16 = this.b((zabd)var1.d().get(var9), var2);
                  if (var16 != null) {
                     if (var16 instanceof zft) {
                        zft var17 = (zft)var16;
                        var15 = this.e.getWorksheets().get(var17.b);
                        var11 = var17.d.StartRow;
                        var13 = var17.d.StartColumn;
                        var12 = var17.d.EndRow;
                        var14 = var17.d.EndColumn;
                     }

                     if (var15 == null) {
                        if (var16 != null) {
                           if (var16 instanceof zst) {
                              return var16;
                           }

                           switch(var5) {
                           case 2:
                              switch(zamo.a(var16.getClass())) {
                              case 14:
                              case 16:
                                 ++var8;
                              default:
                                 continue;
                              }
                           case 3:
                              ++var8;
                              break;
                           default:
                              switch(zamo.a(var16.getClass())) {
                              case 14:
                                 com.aspose.cells.b.a.a.ze.a(var7, var16);
                                 continue;
                              case 16:
                                 com.aspose.cells.b.a.a.ze.a(var7, (Object)CellsHelper.getDoubleFromDateTime((DateTime)var16, this.e.getSettings().getDate1904()));
                                 continue;
                              }

                              int var26;
                              int var29;
                              if (var16 instanceof double[][]) {
                                 double[][] var24 = (double[][])((double[][])var16);
                                 var26 = var24[0].length;

                                 for(int var27 = 0; var27 < var24.length; ++var27) {
                                    if (var24[var27] != null) {
                                       for(var29 = 0; var29 < var26; ++var29) {
                                          switch(var5) {
                                          case 2:
                                             ++var8;
                                             break;
                                          case 3:
                                             ++var8;
                                             break;
                                          default:
                                             com.aspose.cells.b.a.a.ze.a(var7, (Object)var24[var27][var29]);
                                          }
                                       }
                                    }
                                 }
                              }

                              if (var16 instanceof Object[][]) {
                                 Object[][] var25 = (Object[][])((Object[][])var16);

                                 for(var26 = 0; var26 < var25.length; ++var26) {
                                    Object[] var28 = var25[var26];

                                    for(var29 = 0; var29 < var28.length; ++var29) {
                                       Object var30 = var28[var29];
                                       if (var30 != null) {
                                          if (var30 instanceof zst) {
                                             return var30;
                                          }

                                          switch(var5) {
                                          case 2:
                                             switch(zamo.a(var30.getClass())) {
                                             case 14:
                                             case 16:
                                                ++var8;
                                             default:
                                                continue;
                                             }
                                          case 3:
                                             ++var8;
                                             break;
                                          default:
                                             switch(zamo.a(var30.getClass())) {
                                             case 14:
                                                com.aspose.cells.b.a.a.ze.a(var7, var30);
                                                break;
                                             case 16:
                                                com.aspose.cells.b.a.a.ze.a(var7, (Object)CellsHelper.getDoubleFromDateTime((DateTime)var30, this.e.getSettings().getDate1904()));
                                             }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     } else {
                        zahr var23 = var15.getCells().getRows().a.a(var11, var12, false);

                        label209:
                        while(true) {
                           zahl var18;
                           Row var19;
                           do {
                              do {
                                 if (!var23.hasNext()) {
                                    continue label212;
                                 }

                                 var19 = var23.f();
                              } while(var6 && var19.isHidden());

                              var18 = var19.a.b(var13, var14, false);
                           } while(var18 == null);

                           while(true) {
                              Cell var20;
                              do {
                                 int var21 = var18.a();
                                 if (var21 < 0) {
                                    continue label209;
                                 }

                                 var20 = new Cell(var19, var21);
                              } while(var20.f() && var20.getFormula().indexOf("SUBTOTAL(") != -1);

                              var4 = this.a(var20);
                              if (var20.f()) {
                                 var23.g();
                              }

                              if (var4 != null) {
                                 if (var4 instanceof zst) {
                                    return var4;
                                 }

                                 switch(var5) {
                                 case 2:
                                    switch(zamo.a(var4.getClass())) {
                                    case 14:
                                    case 16:
                                       ++var8;
                                    default:
                                       continue;
                                    }
                                 case 3:
                                    ++var8;
                                    break;
                                 default:
                                    switch(zamo.a(var4.getClass())) {
                                    case 14:
                                       com.aspose.cells.b.a.a.ze.a(var7, var4);
                                       break;
                                    case 16:
                                       com.aspose.cells.b.a.a.ze.a(var7, (Object)CellsHelper.getDoubleFromDateTime((DateTime)var4, this.e.getSettings().getDate1904()));
                                    }
                                 }
                              }
                           }
                        }
                     }
                  }
               }

               if (var5 != 2 && var5 != 3) {
                  double[] var22 = com.aspose.cells.a.c.zc.b(com.aspose.cells.b.a.a.ze.a(var7, Double.TYPE));
                  switch(var5) {
                  case 1:
                     return zbop.b(var22);
                  case 2:
                  case 3:
                  default:
                     return zst.i;
                  case 4:
                     return zbop.d(var22);
                  case 5:
                     return zbop.c(var22);
                  case 6:
                     return zbop.e(var22);
                  case 7:
                     return zbop.f(var22);
                  case 8:
                     return zbop.h(var22);
                  case 9:
                     return zbop.a(var22);
                  case 10:
                     return zbop.g(var22);
                  case 11:
                     return zbop.i(var22);
                  }
               } else {
                  return (double)var8;
               }
            }
         } else {
            return zst.i;
         }
      }
   }

   private Object bM(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      var4 = zyn.b(var4);
      if (var4 instanceof zst) {
         return var4;
      } else {
         String var5 = com.aspose.cells.b.a.zr.a(var4);
         var3 = (zabd)var1.d().get(1);
         var4 = this.b(var3, var2);
         var4 = zyn.b(var4);
         if (var4 instanceof zst) {
            return var4;
         } else {
            String var6 = com.aspose.cells.b.a.zr.a(var4);
            var3 = (zabd)var1.d().get(2);
            var4 = this.b(var3, var2);
            var4 = zyn.b(var4);
            if (var4 instanceof zst) {
               return var4;
            } else {
               String var7 = com.aspose.cells.b.a.zr.a(var4);
               if (var1.d().size() == 3) {
                  return "".equals(var6) ? var5 : com.aspose.cells.b.a.zv.a(var5, var6, var7);
               } else {
                  var3 = (zabd)var1.d().get(3);
                  var4 = this.b(var3, var2);
                  if (var4 != null && var4 instanceof Boolean) {
                     return zst.i;
                  } else {
                     var4 = zyn.e(var4, this.e.getSettings().getDate1904());
                     if (var4 instanceof zst) {
                        return var4;
                     } else {
                        int var8 = (int)com.aspose.cells.a.c.zi.b(var4);
                        if (var8 <= 0) {
                           return zst.i;
                        } else {
                           int var9 = 0;

                           for(int var10 = 0; var10 < var8; ++var10) {
                              int var11 = var5.indexOf(var6, var9);
                              if (var11 == -1) {
                                 return var5;
                              }

                              var9 = var11 + var6.length();
                           }

                           return var5.substring(0, 0 + (var9 - var6.length())) + var7 + var5.substring(var9);
                        }
                     }
                  }
               }
            }
         }
      }
   }

   private Object a(zabd var1, Cell var2, boolean var3, boolean var4, boolean var5, boolean var6) {
      ArrayList var7 = new ArrayList();

      for(int var8 = 0; var8 < var1.d().size(); ++var8) {
         Object var9 = this.b((zabd)var1.d().get(var8), var2);
         var9 = zyn.a(var7, var9, var2, var3, var4, var5, var6, this.e.getSettings().getDate1904(), false);
         if (var9 != null && var9 instanceof zst) {
            return var9;
         }
      }

      double[] var12 = new double[var7.size()];

      for(int var13 = 0; var13 < var7.size(); ++var13) {
         var12[var13] = (Double)var7.get(var13);
      }

      switch(u.a(var1.b())) {
      case 87:
         return zbop.m(var12);
      case 146:
         return zbop.n(var12);
      case 185:
         return zbop.o(var12);
      case 229:
         return zbop.k(var12);
      case 253:
         int[] var11 = new int[var12.length];

         for(int var10 = 0; var10 < var11.length; ++var10) {
            var11[var10] = (int)var12[var10];
         }

         return zamz.a(var11);
      case 313:
         return zbop.l(var12);
      case 321:
         return zbop.f(var12);
      case 325:
         return zbop.h(var12);
      case 327:
         return zamz.a(var12);
      case 352:
      case 353:
         return zbop.g(var12);
      case 354:
      case 355:
         return zbop.i(var12);
      default:
         return null;
      }
   }

   private Object bN(zabd var1, Cell var2) {
      double[] var3 = new double[5];

      Object var6;
      for(int var4 = 0; var4 < 5; ++var4) {
         Object var5 = this.b((zabd)var1.d().get(var4), var2);
         if (var5 == null) {
            var3[var4] = 0.0D;
         } else {
            if (var5 instanceof zst) {
               return var5;
            }

            var6 = zyn.a(this.e, var5, false, this.e.getSettings());
            if (var6 instanceof zst) {
               return var6;
            }

            var3[var4] = (Double)var6;
         }
      }

      double var8 = 2.0D;
      if (var1.d().size() > 5) {
         var6 = this.H((zabd)var1.d().get(5), var2);
         if (var6 instanceof zst) {
            return var6;
         }

         var8 = (Double)var6;
      }

      boolean var9 = false;
      if (var1.d().size() > 6) {
         Object var7 = this.b((zabd)var1.d().get(6), var2);
         var7 = zyn.c(var7, this.e.getSettings().getDate1904());
         if (var7 instanceof zst) {
            return var7;
         }

         var9 = (Boolean)var7;
      }

      return zvp.a(var3[0], var3[1], var3[2], var3[3], var3[4], var8, var9);
   }

   private Object bO(zabd var1, Cell var2) {
      double[] var3 = new double[var1.d().size()];

      for(int var4 = 0; var4 < var1.d().size(); ++var4) {
         Object var5 = this.b((zabd)var1.d().get(var4), var2);
         if (var5 == null) {
            var3[var4] = 0.0D;
            if (var4 == 4) {
               var3[1] = 12.0D;
            }
         } else {
            if (var5 instanceof zst) {
               return var5;
            }

            Object var6 = zyn.a(this.e, var5, false, this.e.getSettings());
            if (var6 instanceof zst) {
               return var6;
            }

            var3[var4] = (Double)var6;
         }
      }

      return zvp.e(var3[0], var3[1], var3[2], var3[3], var3.length > 4 ? var3[4] : 12.0D);
   }

   private Object bP(zabd var1, Cell var2) {
      double[] var3 = new double[2];

      Object var5;
      for(int var4 = 0; var4 < 2; ++var4) {
         var5 = this.b((zabd)var1.d().get(var4), var2);
         if (var5 == null) {
            var3[var4] = 0.0D;
         } else {
            if (var5 instanceof zst) {
               return var5;
            }

            Object var6 = zyn.a(this.e, var5, false, this.e.getSettings());
            if (var6 instanceof zst) {
               return var6;
            }

            var3[var4] = (Double)var6;
         }
      }

      String var7 = "i";
      if (var1.d().size() > 2) {
         var5 = this.b((zabd)var1.d().get(2), var2);
         if (var5 != null) {
            if (var5 instanceof zst) {
               return var5;
            }

            var7 = com.aspose.cells.b.a.zr.a(var5);
         }
      }

      return zsi.a(var3[0], var3[1], var7);
   }

   private Object bQ(zabd var1, Cell var2) {
      Object var7 = this.b((zabd)var1.d().get(0), var2);
      var7 = zyn.a(this.e, var7, false, this.e.getSettings());
      if (var7 instanceof zst) {
         return var7;
      } else {
         double var3 = (Double)var7;
         var7 = this.b((zabd)var1.d().get(1), var2);
         if (var7 instanceof zst) {
            return var7;
         } else {
            String var5 = com.aspose.cells.b.a.zr.a(var7);
            var7 = this.b((zabd)var1.d().get(2), var2);
            if (var7 instanceof zst) {
               return var7;
            } else {
               String var6 = com.aspose.cells.b.a.zr.a(var7);
               return zsi.a(var3, var5, var6);
            }
         }
      }
   }

   private Object bR(zabd var1, Cell var2) {
      double[] var3 = new double[var1.d().size()];

      for(int var4 = 0; var4 < var1.d().size(); ++var4) {
         Object var5 = this.b((zabd)var1.d().get(var4), var2);
         if (var5 == null) {
            var3[var4] = 0.0D;
            switch(u.a(var1.b())) {
            case 74:
               if (var4 == 4) {
                  var3[var4] = 1000.0D;
               }
               break;
            case 75:
               if (var4 == 3) {
                  var3[var4] = 1000.0D;
               }
            }
         } else {
            if (var5 instanceof zst) {
               return var5;
            }

            Object var6 = zyn.a(this.e, var5, false, this.e.getSettings());
            if (var6 instanceof zst) {
               return var6;
            }

            var3[var4] = (Double)var6;
         }
      }

      switch(u.a(var1.b())) {
      case 74:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], (int)var3[5], (int)(var3.length > 6 ? var3[6] : 0.0D));
      case 75:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3.length > 3 ? var3[3] : 1000.0D, var3.length > 4 ? (int)var3[4] : 0);
      default:
         return null;
      }
   }

   private Object h(zabd var1, Cell var2, int var3) {
      ArrayList var4 = new ArrayList();

      for(int var5 = 0; var5 < var3 && var5 < var1.d().size(); ++var5) {
         Object var6 = this.b((zabd)var1.d().get(var5), var2);
         if (var6 != null) {
            if (var6 instanceof zst) {
               return var6;
            }

            zyn.a(var4, var6);
         }
      }

      String[] var7 = new String[var4.size()];

      for(int var8 = 0; var8 < var7.length; ++var8) {
         var7[var8] = (String)var4.get(var8);
      }

      switch(u.a(var1.b())) {
      case 206:
         return zsi.b(var7);
      case 207:
         return zsi.a(var7);
      default:
         return null;
      }
   }

   private Object bS(zabd var1, Cell var2) {
      Object var3 = this.b((zabd)var1.d().get(0), var2);
      if (var3 != null) {
         if (var3 instanceof zst) {
            return var3;
         }

         if (var3 instanceof String) {
            return var3;
         }
      }

      return "";
   }

   private Object i(zabd var1, Cell var2, int var3) {
      String[] var4 = new String[var3];

      for(int var5 = 0; var5 < var3; ++var5) {
         Object var6 = this.b((zabd)var1.d().get(var5), var2);
         if (var6 == null) {
            var4[var5] = "";
         } else {
            if (var6 instanceof zst) {
               return var6;
            }

            var4[var5] = com.aspose.cells.b.a.zr.a(var6);
         }
      }

      Object var7;
      switch(u.a(var1.b())) {
      case 186:
         if (var1.d().size() > 1) {
            var7 = this.b((zabd)var1.d().get(1), var2);
            if (var7 != null) {
               var7 = zyn.a(this.e, var7, false, this.e.getSettings());
               if (var7 instanceof zst) {
                  return var7;
               }
            } else {
               var7 = 0.0D;
            }

            return zsi.a(var4[0], (int)com.aspose.cells.a.c.zi.b(var7));
         }

         return zsi.p(var4[0]);
      case 187:
         return zsi.q(var4[0]);
      case 188:
         if (var1.d().size() > 1) {
            var7 = this.b((zabd)var1.d().get(1), var2);
            if (var7 != null) {
               var7 = zyn.a(this.e, var7, false, this.e.getSettings());
               if (var7 instanceof zst) {
                  return var7;
               }
            } else {
               var7 = 0.0D;
            }

            return zsi.b(var4[0], (int)com.aspose.cells.a.c.zi.b(var7));
         }

         return zsi.r(var4[0]);
      case 189:
      case 190:
      default:
         return null;
      case 191:
         return zsi.f(var4[0]);
      case 192:
         return zsi.e(var4[0]);
      case 193:
         return zsi.n(var4[0]);
      case 194:
         return zsi.o(var4[0]);
      case 195:
         return zsi.l(var4[0]);
      case 196:
         return zsi.b(var4[0], var4[1]);
      case 197:
         return zsi.m(var4[0]);
      case 198:
         return zsi.g(var4[0]);
      case 199:
         return zsi.i(var4[0]);
      case 200:
         return zsi.h(var4[0]);
      case 201:
         var7 = this.b((zabd)var1.d().get(1), var2);
         if (var7 != null) {
            var7 = zyn.a(this.e, var7, false, this.e.getSettings());
            if (var7 instanceof zst) {
               return var7;
            }
         } else {
            var7 = 0.0D;
         }

         return zsi.a(var4[0], (Double)var7);
      case 202:
         return zsi.d(var4[0]);
      case 203:
         return zsi.k(var4[0]);
      case 204:
         return zsi.j(var4[0]);
      case 205:
         return zsi.a(var4[0], var4[1]);
      }
   }

   private Object bT(zabd var1, Cell var2) {
      double[] var3 = new double[var1.d().size()];

      int var4;
      for(var4 = 0; var4 < var1.d().size(); ++var4) {
         Object var5 = this.H((zabd)var1.d().get(var4), var2);
         if (var5 instanceof zst) {
            return var5;
         }

         var3[var4] = (Double)var5;
      }

      switch(u.a(var1.b())) {
      case 79:
         return zvp.a(var3[0], CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], var3[5], var3.length > 6 ? (int)var3[6] : 0);
      case 80:
         return zvp.b(var3[0], CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], var3[5], var3.length > 6 ? (int)var3[6] : 0);
      case 81:
      case 82:
      case 83:
      case 84:
      case 85:
      case 86:
      case 87:
      case 88:
      case 109:
      case 110:
      case 111:
      case 112:
      case 113:
      case 114:
      case 115:
      case 116:
      case 117:
      case 118:
      case 119:
      case 121:
      case 123:
      case 124:
      case 125:
      case 126:
      case 127:
      case 137:
      case 138:
      case 139:
      case 142:
      case 143:
      case 146:
      case 147:
      case 149:
      case 150:
      case 154:
      case 156:
      case 159:
      case 160:
      case 161:
      case 162:
      case 166:
      case 167:
      case 168:
      case 169:
      case 170:
      case 173:
      case 174:
      case 175:
      case 176:
      case 177:
      case 178:
      case 179:
      case 182:
      case 184:
      case 185:
      case 186:
      case 187:
      case 188:
      case 189:
      case 191:
      case 192:
      case 193:
      case 194:
      case 195:
      case 196:
      case 197:
      case 198:
      case 199:
      case 200:
      case 201:
      case 202:
      case 203:
      case 204:
      case 205:
      case 206:
      case 207:
      case 208:
      case 209:
      case 211:
      case 212:
      case 213:
      case 214:
      case 215:
      case 216:
      case 217:
      case 218:
      case 219:
      case 220:
      case 221:
      case 222:
      case 223:
      case 224:
      case 225:
      case 227:
      case 228:
      case 229:
      case 230:
      case 232:
      case 233:
      case 234:
      case 235:
      case 236:
      case 238:
      case 241:
      case 242:
      case 244:
      case 245:
      case 246:
      case 247:
      case 248:
      case 249:
      case 250:
      case 251:
      case 252:
      case 253:
      case 254:
      case 255:
      case 257:
      case 258:
      case 259:
      case 260:
      case 262:
      case 263:
      case 264:
      case 265:
      case 266:
      case 267:
      case 276:
      case 277:
      case 279:
      case 280:
      case 281:
      case 285:
      case 286:
      case 287:
      case 288:
      case 289:
      case 290:
      case 292:
      case 294:
      case 296:
      case 298:
      case 299:
      case 300:
      case 301:
      case 302:
      case 304:
      case 305:
      case 306:
      case 307:
      case 308:
      case 309:
      case 310:
      case 311:
      case 312:
      case 313:
      case 314:
      case 315:
      case 318:
      case 319:
      case 320:
      case 321:
      case 322:
      case 323:
      case 324:
      case 325:
      case 326:
      case 327:
      case 328:
      case 329:
      case 333:
      case 334:
      case 335:
      case 336:
      case 337:
      case 338:
      case 339:
      case 340:
      case 341:
      case 342:
      case 343:
      case 344:
      case 345:
      case 346:
      case 347:
      case 348:
      case 349:
      case 350:
      case 351:
      case 352:
      case 353:
      case 354:
      case 355:
      case 356:
      case 357:
      case 358:
      case 359:
      case 360:
      case 361:
      case 362:
      case 363:
      case 364:
      case 365:
      case 369:
      case 370:
      default:
         return null;
      case 89:
         return zsi.e(var3[0], (int)var3[1]);
      case 90:
         return zsi.a(var3[0], (int)var3[1]);
      case 91:
         return zsi.g(var3[0], (int)var3[1]);
      case 92:
         return zsi.c(var3[0], (int)var3[1]);
      case 93:
         return zsi.a((long)var3[0]);
      case 94:
         if (var3.length > 1) {
            return zsi.b((long)var3[0], (int)var3[1]);
         }

         return zsi.c((long)var3[0]);
      case 95:
         if (var3.length > 1) {
            return zsi.a((long)var3[0], (int)var3[1]);
         }

         return zsi.b((long)var3[0]);
      case 96:
         if (var3.length > 1) {
            return zsi.c((long)var3[0], (int)var3[1]);
         }

         return zsi.d((long)var3[0]);
      case 97:
         if (var3.length > 1) {
            return zsi.e((long)var3[0], (int)var3[1]);
         }

         return zsi.f((long)var3[0]);
      case 98:
         if (var3.length > 1) {
            return zsi.d((long)var3[0], (int)var3[1]);
         }

         return zsi.e((long)var3[0]);
      case 99:
      case 100:
         return zbc.b(var3[0], var3[1]);
      case 101:
      case 102:
         return zbc.c(var3[0], var3[1]);
      case 103:
      case 104:
         return zbc.d(var3[0], var3[1]);
      case 105:
      case 106:
         return zbc.e(var3[0], var3[1]);
      case 107:
      case 108:
         return zbc.f(var3[0], var3[1]);
      case 120:
         return zamz.a(var3[0], var3[1]);
      case 122:
         return zbop.a(var3[0], var3[1], (int)var3[2]);
      case 128:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), (int)var3[2], var3.length > 3 ? (int)var3[3] : 0);
      case 129:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), (int)var3[2], var3.length > 3 ? (int)var3[3] : 0);
      case 130:
         return zvp.c(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), (int)var3[2], var3.length > 3 ? (int)var3[3] : 0);
      case 131:
         return zvp.e(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), (int)var3[2], var3.length > 3 ? (int)var3[3] : 0);
      case 132:
         return zvp.f(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), (int)var3[2], var3.length > 3 ? (int)var3[3] : 0);
      case 133:
         return zvp.d(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), (int)var3[2], var3.length > 3 ? (int)var3[3] : 0);
      case 134:
         if (var3[0] > 0.0D && var3[1] > 0.0D && var3[2] > 0.0D) {
            if (var3[3] >= 1.0D && var3[4] >= 1.0D && var3[3] <= var3[4]) {
               return zvp.d(var3[0], var3[1], var3[2], var3[3], var3[4], var3[5]);
            }

            return zst.f;
         }

         return zst.f;
      case 135:
         return zvp.e(var3[0], var3[1], var3[2], var3[3], var3[4], var3[5]);
      case 136:
         return zbop.a((int)var3[0], var3[1], var3[2]);
      case 140:
      case 141:
         return zqq.a(var3[0], var3[1]);
      case 144:
         return var3[0] * 180.0D / 3.141592653589793D;
      case 145:
         if (var3.length > 1) {
            return zsi.a(var3[0], var3[1]);
         }

         return zsi.a(var3[0]);
      case 148:
         return zvp.d(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], var3.length > 4 ? (int)var3[4] : 0);
      case 151:
         return zvp.c(var3[0], var3[1]);
      case 152:
         return zvp.b(var3[0], var3[1]);
      case 153:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], (int)var3[4], var3.length > 5 ? (int)var3[5] : 0);
      case 155:
         return zvp.a(var3[0], (int)var3[1]);
      case 157:
         if (var3.length > 1) {
            return zsi.c(var3[0], var3[1]);
         }

         return zsi.c(var3[0]);
      case 158:
         return zsi.d(var3[0]);
      case 163:
         return zamz.a(var3[0]);
      case 164:
         if (var3[0] < 0.0D) {
            return zst.f;
         }

         return zamz.b((int)var3[0]);
      case 165:
         if (var3[0] < 0.0D) {
            return zst.f;
         }

         return zamz.a((int)var3[0]);
      case 171:
         return zbop.a(var3[0]);
      case 172:
         return zbop.b(var3[0]);
      case 180:
         return zbop.c(var3[0]);
      case 181:
         if (var3[0] >= 0.0D && var3[1] >= 0.0D) {
            return zamz.c((int)var3[0], (int)var3[1]);
         }

         return zst.f;
      case 183:
         if (var3.length > 1) {
            return zsi.b(var3[0], var3[1]);
         }

         return zsi.b(var3[0]);
      case 190:
         return zbop.a(var3[0], var3[1], var3[2], var3[3]);
      case 210:
         return zvp.e(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], var3.length > 4 ? (int)var3[4] : 0);
      case 226:
         return zvp.b(var3[0], var3[1], var3[2], var3[3]);
      case 231:
         if (var3[0] >= 0.0D && var3[1] >= 0.0D) {
            return zamz.b((int)var3[0], (int)var3[1]);
         }

         return zst.f;
      case 237:
         if (var3[0] < 0.0D || var3.length >= 2 && var3[1] < 0.0D) {
            return zst.f;
         } else {
            return var3.length >= 2 ? com.aspose.cells.b.a.zq.a(var3[0], var3[1]) : com.aspose.cells.b.a.zq.a(var3[0], 10.0D);
         }
      case 239:
         return zbop.e(var3[0], var3[1], var3[2]);
      case 240:
         return zbop.f(var3[0], var3[1], var3[2]);
      case 243:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], (int)var3[4], var3.length > 5 ? (int)var3[5] : 0);
      case 256:
         return zbop.g(var3[0], var3[1], var3[2]);
      case 261:
         return zvp.b(var3[0], (int)var3[1]);
      case 268:
         if (var3.length > 1) {
            return zsi.f((long)var3[0], (int)var3[1]);
         }

         return zsi.g((long)var3[0]);
      case 269:
         return zsi.h((long)var3[0]);
      case 270:
         if (var3.length > 1) {
            return zsi.g((long)var3[0], (int)var3[1]);
         }

         return zsi.i((long)var3[0]);
      case 271:
         return zamz.b(var3[0]);
      case 272:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[3], this.e.getSettings().getDate1904()), var3[4], var3[5], (int)var3[6], (int)var3[7], var3.length > 8 ? (int)var3[8] : 0);
      case 273:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[3], this.e.getSettings().getDate1904()), var3[4], var3[5], (int)var3[6], (int)var3[7], var3.length > 8 ? (int)var3[8] : 0);
      case 274:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], (int)var3[5], (int)var3[6], var3.length > 7 ? (int)var3[7] : 0);
      case 275:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], (int)var3[5], (int)var3[6], var3.length > 7 ? (int)var3[7] : 0);
      case 278:
         return zbop.g(var3[0], var3[1]);
      case 282:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], (int)var3[4], (int)var3[5], var3.length > 6 ? (int)var3[6] : 0, true);
      case 283:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], var3.length > 4 ? (int)var3[4] : 0);
      case 284:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], var3.length > 5 ? (int)var3[5] : 0);
      case 291:
         return (int)(var3[0] / var3[1]);
      case 293:
         return var3[0] * 3.141592653589793D / 180.0D;
      case 295:
         if (var3[0] > var3[1]) {
            return zst.f;
         }

         if (this.i == null) {
            this.i = new Random();
         }

         return (double)com.aspose.cells.b.a.zs.a(this.i, (int)var3[0], (int)var3[1]);
      case 297:
         return zvp.f(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], var3.length > 4 ? (int)var3[4] : 0);
      case 303:
         var4 = (int)var3[0];
         int var6 = 0;
         if (var3.length > 1) {
            var6 = (int)var3[1];
         }

         if (var4 >= 0 && var4 <= 3999) {
            return zamz.a(var4, var6);
         }

         return zst.i;
      case 316:
         if (var3[0] < 0.0D) {
            return zst.i;
         }

         return Math.sqrt(var3[0] * 3.141592653589793D);
      case 317:
         return zbop.d(var3[0], var3[1], var3[2]);
      case 330:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2]);
      case 331:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2]);
      case 332:
         return zvp.c(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2]);
      case 366:
         return zvp.a(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], var3[4], (int)var3[5], var3.length > 6 ? (int)var3[6] : 0);
      case 367:
         return zvp.c(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), var3[2], var3[3], var3.length > 4 ? (int)var3[4] : 0);
      case 368:
         return zvp.b(CellsHelper.getDateTimeFromDouble(var3[0], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[1], this.e.getSettings().getDate1904()), CellsHelper.getDateTimeFromDouble(var3[2], this.e.getSettings().getDate1904()), var3[3], var3[4], var3.length > 5 ? (int)var3[5] : 0);
      case 371:
         return zbop.b(var3[0], var3[1], var3[2], var3[3] != 0.0D);
      }
   }

   private Object bU(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         return var4 instanceof Double ? Math.tan((Double)var4) : var4;
      }
   }

   private Object bV(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         return var4 instanceof Double ? Math.tanh((Double)var4) : var4;
      }
   }

   private Object bW(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var5 = (Double)var4;
            return Math.log(var5 + Math.sqrt(var5 * var5 + 1.0D));
         } else {
            return var4;
         }
      }
   }

   private Object bX(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var5 = (Double)var4;
            return var5 < 1.0D ? zst.f : Math.log(var5 + Math.sqrt(var5 * var5 - 1.0D));
         } else {
            return var4;
         }
      }
   }

   private Object bY(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var5 = (Double)var4;
            return var5 > -1.0D && var5 < 1.0D ? Math.log((1.0D + var5) / (1.0D - var5)) / 2.0D : zst.f;
         } else {
            return var4;
         }
      }
   }

   private Object bZ(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            double var5 = (Double)var4;
            return Math.atan(var5);
         } else {
            return var4;
         }
      }
   }

   private Object ca(zabd var1, Cell var2) {
      if (var1.d() != null && var1.d().size() == 2) {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         var4 = zyn.e(var4, this.e.getSettings().getDate1904());
         if (var4 instanceof zst) {
            return var4;
         } else {
            var3 = (zabd)var1.d().get(1);
            Object var5 = this.b(var3, var2);
            var5 = zyn.e(var5, this.e.getSettings().getDate1904());
            if (var5 instanceof zst) {
               return var5;
            } else {
               return (Double)var5 == 0.0D && (Double)var4 == 0.0D ? zst.a : Math.atan2((Double)var5, (Double)var4);
            }
         }
      } else {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      }
   }

   private Object cb(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = zyn.e(this.b(var3, var2), this.e.getSettings().getDate1904());
         if (var4 instanceof Double) {
            return (Double)var4 < 0.0D ? zst.f : Math.sqrt((Double)var4);
         } else {
            return var4;
         }
      }
   }

   private Object cc(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         var4 = zyn.e(var4, this.e.getSettings().getDate1904());
         if (var4 instanceof zst) {
            return var4;
         } else {
            double var5 = Math.exp((Double)var4);
            return Double.isInfinite(var5) ? zst.f : var5;
         }
      }
   }

   private Object cd(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         var4 = zyn.e(var4, this.e.getSettings().getDate1904());
         if (var4 instanceof zst) {
            return var4;
         } else {
            double var5 = (Double)var4;
            return var5 <= 0.0D ? zst.f : Math.log(var5);
         }
      }
   }

   private Object ce(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         var4 = zyn.e(var4, this.e.getSettings().getDate1904());
         if (var4 instanceof zst) {
            return var4;
         } else {
            return (Double)var4 <= 0.0D ? zst.f : Math.log10((Double)var4);
         }
      }
   }

   private Object cf(zabd var1, Cell var2) {
      if (var1.d().size() != 1) {
         throw new CellsException(5, "Invalid formula in " + var2.d.h().getName() + ":" + var2.i());
      } else {
         zabd var3 = (zabd)var1.d().get(0);
         Object var4 = this.b(var3, var2);
         var4 = zyn.e(var4, this.e.getSettings().getDate1904());
         if (var4 instanceof zst) {
            return var4;
         } else {
            double var5 = (Double)var4;
            if (var5 < 0.0D) {
               return -1.0D;
            } else {
               return var5 > 0.0D ? 1.0D : 0.0D;
            }
         }
      }
   }

   private Object cg(zabd var1, Cell var2) {
      zabd var3 = (zabd)var1.d().get(0);
      Object var4 = this.b(var3, var2);
      return var4 instanceof Object[] ? zba.b(this.e, var4) : zbc.a(var4, this.e.getSettings());
   }

   private Object ch(zabd var1, Cell var2) {
      boolean var3 = false;
      boolean var4 = false;
      zabd var5 = (zabd)var1.d().get(0);
      Object var6 = this.b(var5, var2);
      var6 = zyn.e(var6, this.e.getSettings().getDate1904());
      if (var6 instanceof zst) {
         return var6;
      } else {
         int var15 = (int)com.aspose.cells.a.c.zi.b(var6);
         if (var15 < 1) {
            return zst.i;
         } else {
            zabd var7 = (zabd)var1.d().get(1);
            Object var8 = this.b(var7, var2);
            var8 = zyn.e(var8, this.e.getSettings().getDate1904());
            if (var8 instanceof zst) {
               return var8;
            } else {
               int var16 = (int)com.aspose.cells.a.c.zi.b(var8);
               if (var16 < 1) {
                  return zst.i;
               } else {
                  --var15;
                  --var16;
                  boolean var9 = true;
                  boolean var10 = true;
                  if (var1.d().size() > 2) {
                     zabd var11 = (zabd)var1.d().get(2);
                     Object var12 = this.b(var11, var2);
                     if (var12 == null && var11.f()[0] == 22) {
                        var12 = 1.0D;
                     } else {
                        var12 = zyn.e(var12, this.e.getSettings().getDate1904());
                     }

                     if (var12 instanceof zst) {
                        return var12;
                     }

                     if (var12 != null) {
                        int var13 = (int)com.aspose.cells.a.c.zi.b(var12);
                        switch(var13) {
                        case 1:
                        case 5:
                           break;
                        case 2:
                        case 6:
                           var10 = false;
                           break;
                        case 3:
                        case 7:
                           var9 = false;
                           break;
                        case 4:
                        case 8:
                           var10 = false;
                           var9 = false;
                           break;
                        default:
                           return zst.i;
                        }
                     }
                  }

                  boolean var17 = true;
                  if (var1.d().size() > 3) {
                     zabd var18 = (zabd)var1.d().get(3);
                     this.b(var18, var2);
                  }

                  String var20 = null;
                  if (var1.d().size() > 4) {
                     Object var19 = this.b((zabd)var1.d().get(4), var2);
                     if (var19 != null) {
                        var19 = zyn.b(var19);
                        if (var19 instanceof zst) {
                           return var19;
                        }

                        var20 = (String)var19;
                        if (var20 != null && zakq.b(var20)) {
                           var20 = "'" + var20 + "'";
                        }
                     }
                  }

                  String var21 = "";
                  if (var17) {
                     var21 = CellsHelper.cellIndexToName(var15, var16);
                     if (var9) {
                        for(int var14 = 0; var14 < var21.length(); ++var14) {
                           if (var21.charAt(var14) >= '0' && var21.charAt(var14) <= '9') {
                              var21 = com.aspose.cells.b.a.zv.a(var21, var14, "$");
                              break;
                           }
                        }
                     }

                     if (var10) {
                        var21 = com.aspose.cells.b.a.zv.a(var21, 0, "$");
                     }
                  }

                  if (var20 != null) {
                     var21 = var20 + "!" + var21;
                  }

                  return var21;
               }
            }
         }
      }
   }

   void a(Cell var1, Cell var2) {
      CellArea var3 = var1.D().a();
      var1.D().a((byte)1);
      boolean var4 = false;
      boolean[] var5 = new boolean[]{var4};
      boolean var6 = zceu.a(var1.D().d(), -1, -1, var1.getRow(), var1.getColumn(), var3, var5);
      var4 = var5[0];
      if (var4) {
         zahr var8 = var1.b.c.a.a(var3.StartRow, var3.EndRow, var6);

         while(true) {
            zahl var9;
            Row var10;
            do {
               if (!var8.hasNext()) {
                  var1.D().a((byte)2);
                  return;
               }

               var10 = var8.f();
               var9 = var10.a.b(var3.StartColumn, var3.EndColumn, var6);
            } while(var9 == null);

            while(true) {
               int var12 = var9.a();
               if (var12 < 0) {
                  break;
               }

               if (var10.a.h(var12) == 5) {
                  Cell var11 = new Cell(var10, var12);
                  if (zba.a(var11.v(), var1.v())) {
                     if (var11.G() != 0) {
                        break;
                     }

                     var11.a((byte)1);
                     zabd var7 = this.e.getWorksheets().x().a(var11);
                     if (this.h && this.e.getWorksheets().x().c()) {
                        var7 = null;
                     }

                     if (var7 != null) {
                        Object var13 = this.a(var7, var11);
                        var8.g();
                        if (var11.H() & !this.p) {
                           var11.b(false);
                           var11.a((byte)2);
                        } else {
                           var11.a((Object)var13, (byte)2);
                        }
                     } else {
                        var11.a((byte)2);
                     }

                     if (var11.getColumn() == var2.getColumn() && var11.getRow() == var2.getRow()) {
                        return;
                     }
                  }
               }
            }
         }
      }
   }

   private void c() {
      this.p = true;
      int var1 = this.r.size();

      int var2;
      for(var2 = 0; var2 < this.e.getSettings().getMaxIteration(); ++var2) {
         boolean var3 = true;

         for(int var4 = 0; var4 < this.r.size(); ++var4) {
            zjv var5 = (zjv)this.r.get(var4);
            Object var6 = this.b(var5.a, var5.f);
            Object var7 = zmc.a(var6, var5.c, "=", this.e.getSettings().getDate1904());
            if (var7 == null || !(var7 instanceof Boolean) || !(Boolean)var7) {
               var3 = false;
            }

            var5.c = var6;
            var5.f.a((Object)var6, (byte)2);
         }

         if (var3) {
            break;
         }
      }

      for(var2 = 0; var2 < this.k.size(); ++var2) {
         ((zem)this.k.get(var2)).h = false;
      }

      for(var2 = var1; var2 < this.r.size(); ++var2) {
         ((zjv)this.r.get(var2)).f.b(false);
      }

      this.q.clear();
      this.r.clear();
      this.p = false;
   }

   Object a(Cell var1) {
      if (var1.f()) {
         zabd var2;
         switch(var1.G()) {
         case 0:
            if (var1.v() != null && this.e.getWorksheets().x().a((byte)1, var1.v())) {
               byte var8 = 0;
               byte var11 = 0;
               int[] var5 = new int[]{var8};
               int[] var6 = new int[]{var11};
               var1.d.r().x().a(var1.v(), var5, var6);
               int var9 = var5[0];
               int var12 = var6[0];
               Cell var7 = var1.b.c.a.a(var9, var12);
               if (var7 != null && var7.G() == 0 && var7.D() != null && !var7.D().b() && var7.D().c() == 0) {
                  this.a(var7, var1);
               }
            }

            if (var1.G() != 0) {
               return var1.F();
            }

            var1.a((byte)1);
            var2 = this.e.getWorksheets().x().a(var1);
            if (this.h && this.e.getWorksheets().x().c()) {
               var2 = null;
            }

            if (var2 != null) {
               com.aspose.cells.b.a.a.ze.a(this.s, (Object)var1);
               if (this.s.size() == this.t) {
                  throw new zhs();
               }

               Object var10 = this.a(var2, var1);
               this.s.remove(this.s.size() - 1);
               if (var1.H() & !this.p) {
                  var1.b(false);
                  var1.a((byte)2);
                  return var1.F();
               }

               if (var1.isArrayHeader()) {
                  zyd.a(var10, var1);
               } else {
                  var1.a((Object)var10, (byte)2);
               }

               if (var10 != null && !com.aspose.cells.a.c.zc.a(var10)) {
                  return var10;
               }

               return var1.F();
            }

            var1.a((byte)2);
            return var1.getValue();
         case 1:
            if (this.e.getSettings().getIteration()) {
               String var3 = var1.d.h().getName() + "!" + var1.i();
               zjv var4;
               if (this.a().get(var3) != null) {
                  var4 = (zjv)this.a().get(var3);
                  if (!this.p) {
                     this.c();
                  }

                  return var4.c;
               }

               var4 = new zjv();
               var2 = this.e.getWorksheets().x().a(var1);
               var4.a = var2;
               var4.b = 1;
               var4.c = var1.getValue();
               var4.d = false;
               var4.e = this.q.size();
               var4.f = var1;
               var1.b(true);
               this.a().put(var3, var4);
               this.r.add(0, var4);
               this.a(var2, var1);
               return var1.F();
            }

            var1.a((byte)2);
            if (this.h) {
               var1.b(true);
               return var1.getValue();
            }

            return zml.g;
         }
      }

      return var1.F();
   }

   HashMap a() {
      if (this.q == null) {
         this.q = new HashMap();
         this.r = new ArrayList();
      }

      return this.q;
   }

   void b() {
      boolean var1 = true;
      this.t += this.e.getSettings().getCalcStackSize();

      while(this.s.size() > 0) {
         if (var1) {
            for(int var2 = 0; var2 < this.s.size(); ++var2) {
               Cell var3 = (Cell)this.s.get(var2);
               if (var3.G() == 2) {
                  this.s.remove(var2--);
               } else {
                  var3.a((byte)0);
               }
            }

            var1 = false;
         }

         try {
            Cell var5 = (Cell)this.s.get(this.s.size() - 1);
            this.s.remove(this.s.size() - 1);
            this.a(var5);
         } catch (zhs var4) {
            var1 = true;
            this.t += this.e.getSettings().getCalcStackSize();
         }
      }

      this.t = this.e.getSettings().getCalcStackSize();
   }
}
